GD0110: The exported tool button is not a Callable
Regel-ID |
GD0110 |
Kategorie |
Verwendung |
Fix führt oder führt nicht zu Kompatibilitätsbruch |
Breaking - If the property's type is changed to Non-breaking - If the |
Standardmäßig aktiviert |
Ja |
Ursache
A property of a type different from Callable is annotated with the
[ExportToolButton] attribute.
Regelbeschreibung
The [ExportToolButton] attribute is used to create clickable buttons in the inspector so,
the property must be a Callable that will be executed when clicking the button.
Wie man Verstöße behebt
To fix a violation of this rule, change the type of the property to Callable.
Alternatively, if you intended to export a normal property, replace the
[ExportToolButton] attribute with [Export].
Wann man Warnungen unterdrücken sollte
Do not suppress a warning from this rule. The exported property must be a Callable
so it can executed in the editor when clicking the button in the inspector.