GD0110: The exported tool button is not a Callable
Ідентифікатор правила |
GD0110 |
Категорія |
Використання |
Виправлення ламається або не ламається |
Breaking - If the property's type is changed to Non-breaking - If the |
Увімкнено за замовчуванням |
Да |
Причина
A property of a type different from Callable is annotated with the
[ExportToolButton] attribute.
Опис правила
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.
Як усунути порушення
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].
Коли придушувати попередження
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.