Photon Quantum 3.0.0

Public Member Functions | Public Attributes | List of all members
Quantum.EditorButtonAttribute Class Reference

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...
 

Detailed Description

Specifies that a method should be displayed as a button in the Unity editor.

Constructor & Destructor Documentation

◆ EditorButtonAttribute() [1/2]

Quantum.EditorButtonAttribute.EditorButtonAttribute ( string  label,
EditorButtonVisibility  visibility = EditorButtonVisibility.Always,
int  priority = 0,
bool  dirtyObject = false 
)
inline

Initializes a new instance of the EditorButtonAttribute class with the specified label, visibility, priority, and dirty object flag.

Parameters
labelThe label text to display on the button.
visibilityThe visibility of the button in the Unity editor.
priorityThe priority of the button. Buttons with higher priority are displayed first.
dirtyObjectDetermines whether the object should be marked as dirty after clicking the button.

◆ EditorButtonAttribute() [2/2]

Quantum.EditorButtonAttribute.EditorButtonAttribute ( EditorButtonVisibility  visibility = EditorButtonVisibility.Always,
int  priority = 0,
bool  dirtyObject = false 
)
inline

Initializes a new instance of the EditorButtonAttribute class with the specified visibility, priority, and dirty object flag.

Parameters
visibilityThe visibility of the button in the Unity editor.
priorityThe priority of the button. Buttons with higher priority are displayed first.
dirtyObjectDetermines whether the object should be marked as dirty after clicking the button.

Member Data Documentation

◆ Label

string Quantum.EditorButtonAttribute.Label

The label text to display on the button.

◆ Visibility

EditorButtonVisibility Quantum.EditorButtonAttribute.Visibility

The visibility of the button in the Unity editor.

◆ Priority

int Quantum.EditorButtonAttribute.Priority

The priority of the button. Buttons with higher priority are displayed first.

◆ AllowMultipleTargets

bool Quantum.EditorButtonAttribute.AllowMultipleTargets

Determines whether multiple targets are supported.

◆ DirtyObject

bool Quantum.EditorButtonAttribute.DirtyObject

Determines whether the object should be marked as dirty after clicking the button.