Photon Quantum 3.0.0

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

Editor attribute to add a button that invokes a custom method in the inspector. More...

Inheritance diagram for Quantum.FieldEditorButtonAttribute:
Quantum.DecoratingPropertyAttribute Quantum.PropertyAttribute

Public Member Functions

 FieldEditorButtonAttribute (string label, string targetMethod)
 Initializes a new instance class with the specified label and target method. More...
 

Public Attributes

bool AllowMultipleTargets
 Is it allowed to select multiple targets for the button? More...
 
string Label
 Button label. More...
 
string TargetMethod
 The method to invoke when the button is clicked. More...
 

Additional Inherited Members

- Static Public Attributes inherited from Quantum.DecoratingPropertyAttribute
const int DefaultOrder = -10000
 The default order of the attribute. More...
 
- Protected Member Functions inherited from Quantum.DecoratingPropertyAttribute
 DecoratingPropertyAttribute ()
 Initializes a new instance with the default order. More...
 
 DecoratingPropertyAttribute (int order)
 Initializes a new instance with the specified order. More...
 

Detailed Description

Editor attribute to add a button that invokes a custom method in the inspector.

Constructor & Destructor Documentation

◆ FieldEditorButtonAttribute()

Quantum.FieldEditorButtonAttribute.FieldEditorButtonAttribute ( string  label,
string  targetMethod 
)
inline

Initializes a new instance class with the specified label and target method.

Parameters
labelThe label of the button
targetMethodThe method to invoke when the button is clicked

Member Data Documentation

◆ Label

string Quantum.FieldEditorButtonAttribute.Label

Button label.

◆ AllowMultipleTargets

bool Quantum.FieldEditorButtonAttribute.AllowMultipleTargets

Is it allowed to select multiple targets for the button?

◆ TargetMethod

string Quantum.FieldEditorButtonAttribute.TargetMethod

The method to invoke when the button is clicked.