Specifies that a method should be displayed as a button in the Unity editor. More...
Inherits Attribute.
Public Member Functions | |
EditorButtonAttribute (EditorButtonVisibility visibility=EditorButtonVisibility.Always, int priority=0, bool dirtyObject=false) | |
Initializes a new instance of the EditorButtonAttribute class with the specified visibility, priority, and dirty object flag. More... | |
EditorButtonAttribute (string label, EditorButtonVisibility visibility=EditorButtonVisibility.Always, int priority=0, bool dirtyObject=false) | |
Initializes a new instance of the EditorButtonAttribute class with the specified label, visibility, priority, and dirty object flag. More... | |
Public Attributes | |
bool | AllowMultipleTargets |
Determines whether multiple targets are supported. More... | |
bool | DirtyObject |
Determines whether the object should be marked as dirty after clicking the button. More... | |
string | Label |
The label text to display on the button. More... | |
int | Priority |
The priority of the button. Buttons with higher priority are displayed first. More... | |
EditorButtonVisibility | Visibility |
The visibility of the button in the Unity editor. More... | |
Specifies that a method should be displayed as a button in the Unity editor.
EditorButtonAttribute | ( | string | label, |
EditorButtonVisibility | visibility = EditorButtonVisibility.Always , |
||
int | priority = 0 , |
||
bool | dirtyObject = false |
||
) |
Initializes a new instance of the EditorButtonAttribute class with the specified label, visibility, priority, and dirty object flag.
label | The label text to display on the button. |
visibility | The visibility of the button in the Unity editor. |
priority | The priority of the button. Buttons with higher priority are displayed first. |
dirtyObject | Determines whether the object should be marked as dirty after clicking the button. |
EditorButtonAttribute | ( | EditorButtonVisibility | visibility = EditorButtonVisibility.Always , |
int | priority = 0 , |
||
bool | dirtyObject = false |
||
) |
Initializes a new instance of the EditorButtonAttribute class with the specified visibility, priority, and dirty object flag.
visibility | The visibility of the button in the Unity editor. |
priority | The priority of the button. Buttons with higher priority are displayed first. |
dirtyObject | Determines whether the object should be marked as dirty after clicking the button. |
bool AllowMultipleTargets |
Determines whether multiple targets are supported.
bool DirtyObject |
Determines whether the object should be marked as dirty after clicking the button.
string Label |
The label text to display on the button.
int Priority |
The priority of the button. Buttons with higher priority are displayed first.
EditorButtonVisibility Visibility |
The visibility of the button in the Unity editor.