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.
|
inline |
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. |
|
inline |
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. |
string Quantum.EditorButtonAttribute.Label |
The label text to display on the button.
EditorButtonVisibility Quantum.EditorButtonAttribute.Visibility |
The visibility of the button in the Unity editor.
int Quantum.EditorButtonAttribute.Priority |
The priority of the button. Buttons with higher priority are displayed first.
bool Quantum.EditorButtonAttribute.AllowMultipleTargets |
Determines whether multiple targets are supported.
bool Quantum.EditorButtonAttribute.DirtyObject |
Determines whether the object should be marked as dirty after clicking the button.