Namespace Leap::Attributes

namespace Leap.Attributes

Typedefs

UnityObject = UnityEngine.Object
class CombinablePropertyAttribute : public PropertyAttribute

Subclassed by Leap.Attributes.DisableAttribute, Leap.Attributes.DisableIfBase, Leap.Attributes.EditTimeOnly, Leap.Attributes.EnumFlags, Leap.Attributes.IndentAttribute, Leap.Attributes.InspectorNameAttribute, Leap.Attributes.MaxValue, Leap.Attributes.MinMax, Leap.Attributes.MinValue, Leap.Attributes.OnEditorChangeAttribute, Leap.Attributes.UnitsAttribute

class DisableAttribute : public Leap.Attributes.CombinablePropertyAttribute, public Leap.Attributes.IPropertyDisabler
class DisableIf : public Leap.Attributes.DisableIfBase
class DisableIfAll : public Leap.Attributes.DisableIfBase
class DisableIfAny : public Leap.Attributes.DisableIfBase
class DisableIfBase : public Leap.Attributes.CombinablePropertyAttribute, public Leap.Attributes.IPropertyDisabler

Conditionally disables a property based on the value of another property. The only condition types that are currently supported are bool types, and enum types. The property has two arguments names ‘equalTo’ and ‘notEqualTo’. Exactly one of them must be specified, like so:

[DisableIf(“myBoolProperty”, isEqualTo: true)] [DisableIf(“myEnumProperty”, isNotEqualTo: MyEnum.Value)] [DisableIfAny(“bool1”, “bool2”, isEqualTo: false)] [DisableIfAll(“cond1”, “cond2”, “cond3”, isNotEqualTo: true)]

Subclassed by Leap.Attributes.DisableIf, Leap.Attributes.DisableIfAll, Leap.Attributes.DisableIfAny, Leap.Attributes.DisableIfEqual, Leap.Attributes.DisableIfNotEqual

class DisableIfEqual : public Leap.Attributes.DisableIfBase
class DisableIfNotEqual : public Leap.Attributes.DisableIfBase
class EditTimeOnly : public Leap.Attributes.CombinablePropertyAttribute, public Leap.Attributes.IPropertyDisabler
class EnumFlags : public Leap.Attributes.CombinablePropertyAttribute, public Leap.Attributes.IFullPropertyDrawer
interface IAdditiveDrawer

Subclassed by Leap.Attributes.IAfterFieldAdditiveDrawer, Leap.Attributes.IAfterLabelAdditiveDrawer, Leap.Attributes.IBeforeFieldAdditiveDrawer, Leap.Attributes.IBeforeLabelAdditiveDrawer

interface IAfterFieldAdditiveDrawer : public Leap.Attributes.IAdditiveDrawer

Subclassed by Leap.Attributes.UnitsAttribute

interface IAfterLabelAdditiveDrawer : public Leap.Attributes.IAdditiveDrawer
interface IBeforeFieldAdditiveDrawer : public Leap.Attributes.IAdditiveDrawer
interface IBeforeLabelAdditiveDrawer : public Leap.Attributes.IAdditiveDrawer

Subclassed by Leap.Attributes.IndentAttribute

interface IFullPropertyDrawer

Subclassed by Leap.Attributes.EnumFlags, Leap.Attributes.InspectorNameAttribute, Leap.Attributes.MinMax

class IndentAttribute : public Leap.Attributes.CombinablePropertyAttribute, public Leap.Attributes.IBeforeLabelAdditiveDrawer
class InspectorNameAttribute : public Leap.Attributes.CombinablePropertyAttribute, public Leap.Attributes.IFullPropertyDrawer
interface IPropertyConstrainer

Subclassed by Leap.Attributes.MaxValue, Leap.Attributes.MinValue

interface IPropertyDisabler

Subclassed by Leap.Attributes.DisableAttribute, Leap.Attributes.DisableIfBase, Leap.Attributes.EditTimeOnly

interface ISupportDragAndDrop
interface ITopPanelDrawer
class MaxValue : public Leap.Attributes.CombinablePropertyAttribute, public Leap.Attributes.IPropertyConstrainer
class MinMax : public Leap.Attributes.CombinablePropertyAttribute, public Leap.Attributes.IFullPropertyDrawer
class MinValue : public Leap.Attributes.CombinablePropertyAttribute, public Leap.Attributes.IPropertyConstrainer
class OnEditorChangeAttribute : public Leap.Attributes.CombinablePropertyAttribute

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)

class UnitsAttribute : public Leap.Attributes.CombinablePropertyAttribute, public Leap.Attributes.IAfterFieldAdditiveDrawer