Tanoda
Leap.Unity.Attributes.OnEditorChangeAttribute Class Reference

Use the OnChange attribute to recieve a callback whenever a field is changed. The callback can be in the form of: More...

Inheritance diagram for Leap.Unity.Attributes.OnEditorChangeAttribute:
Leap.Unity.Attributes.CombinablePropertyAttribute

Public Member Functions

 OnEditorChangeAttribute (string methodName)
 

Public Attributes

readonly string methodName
 

Additional Inherited Members

- Properties inherited from Leap.Unity.Attributes.CombinablePropertyAttribute
FieldInfo? fieldInfo [get, protected set]
 
UnityObject[]? targets [get, protected set]
 

Detailed Description

Use the OnChange attribute to recieve a callback whenever a field is changed. The callback can be in the form of:

  • A method accepting zero arguments
  • A method accepting a single argument matching the field type (new value is passed in as the argument)
  • A property matching the type of the field (the setter is called with the new value)

Definition at line 28 of file OnEditorChange.cs.

Constructor & Destructor Documentation

◆ OnEditorChangeAttribute()

Leap.Unity.Attributes.OnEditorChangeAttribute.OnEditorChangeAttribute ( string  methodName)

Definition at line 31 of file OnEditorChange.cs.

Member Data Documentation

◆ methodName

readonly string Leap.Unity.Attributes.OnEditorChangeAttribute.methodName

Definition at line 29 of file OnEditorChange.cs.


The documentation for this class was generated from the following file: