Photon Fusion 2.0.3

Public Member Functions | Public Attributes | List of all members
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]

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.

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]

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.

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

◆ AllowMultipleTargets

bool AllowMultipleTargets

Determines whether multiple targets are supported.

◆ DirtyObject

bool DirtyObject

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

◆ Label

string Label

The label text to display on the button.

◆ Priority

int Priority

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

◆ Visibility

The visibility of the button in the Unity editor.