Namespace Leap::Unity::Attributes

namespace Leap.Unity.Attributes

Typedefs

UnityObject = UnityEngine.Object

Enums

enum AutoFindLocations

Values:

Object
Children
Parents
Scene
All
enum FileDialogType

Values:

Open
Save
Folder
class AutoFindAttribute : public Attribute
class CombinablePropertyAttribute : public PropertyAttribute

Subclassed by Leap.Unity.Attributes.CurveBoundsAttribute, Leap.Unity.Attributes.DisableAttribute, Leap.Unity.Attributes.DisableIfBase, Leap.Unity.Attributes.EditTimeOnly, Leap.Unity.Attributes.EditorGUIPanelAttribute, Leap.Unity.Attributes.EnumFlags, Leap.Unity.Attributes.FileChooserAttribute, Leap.Unity.Attributes.ImplementsInterfaceAttribute, Leap.Unity.Attributes.ImplementsTypeNameDropdownAttribute, Leap.Unity.Attributes.Incrementable, Leap.Unity.Attributes.InspectorNameAttribute, Leap.Unity.Attributes.MaxValue, Leap.Unity.Attributes.MinMax, Leap.Unity.Attributes.MinValue, Leap.Unity.Attributes.OnEditorChangeAttribute, Leap.Unity.Attributes.QuickButtonAttribute, Leap.Unity.Attributes.RunTimeOnlyAttribute, Leap.Unity.Attributes.UnitsAttribute

class CurveBoundsAttribute : public Leap.Unity.Attributes.CombinablePropertyAttribute, public Leap.Unity.Attributes.IFullPropertyDrawer

You can use this attribute to mark that an AnimationCurve can only have values that fall within specific bounds. The user will be prevented from entering a curve that lies outside of these bounds.

Subclassed by Leap.Unity.Attributes.UnitCurveAttribute

class DisableAttribute : public Leap.Unity.Attributes.CombinablePropertyAttribute, public Leap.Unity.Attributes.IPropertyDisabler
class DisableIf : public Leap.Unity.Attributes.DisableIfBase
class DisableIfAll : public Leap.Unity.Attributes.DisableIfBase
class DisableIfAny : public Leap.Unity.Attributes.DisableIfBase
class DisableIfBase : public Leap.Unity.Attributes.CombinablePropertyAttribute, public Leap.Unity.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.Unity.Attributes.DisableIf, Leap.Unity.Attributes.DisableIfAll, Leap.Unity.Attributes.DisableIfAny, Leap.Unity.Attributes.DisableIfEqual, Leap.Unity.Attributes.DisableIfNotEqual

class DisableIfEqual : public Leap.Unity.Attributes.DisableIfBase
class DisableIfNotEqual : public Leap.Unity.Attributes.DisableIfBase
class EditorGUIPanelAttribute : public Leap.Unity.Attributes.CombinablePropertyAttribute, public Leap.Unity.Attributes.ITopPanelDrawer
class EditTimeOnly : public Leap.Unity.Attributes.CombinablePropertyAttribute, public Leap.Unity.Attributes.IPropertyDisabler
class EnumFlags : public Leap.Unity.Attributes.CombinablePropertyAttribute, public Leap.Unity.Attributes.IFullPropertyDrawer
class FileChooserAttribute : public Leap.Unity.Attributes.CombinablePropertyAttribute, public Leap.Unity.Attributes.IAfterFieldAdditiveDrawer

Subclassed by Leap.Unity.Attributes.FolderChooserAttribute, Leap.Unity.Attributes.ReadFileChooserAttribute, Leap.Unity.Attributes.WriteFileChooserAttribute

class FolderChooserAttribute : public Leap.Unity.Attributes.FileChooserAttribute
interface IAdditiveDrawer

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

interface IAfterFieldAdditiveDrawer : public Leap.Unity.Attributes.IAdditiveDrawer

Subclassed by Leap.Unity.Attributes.FileChooserAttribute, Leap.Unity.Attributes.Incrementable, Leap.Unity.Attributes.QuickButtonAttribute, Leap.Unity.Attributes.UnitsAttribute

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

Subclassed by Leap.Unity.Attributes.CurveBoundsAttribute, Leap.Unity.Attributes.EnumFlags, Leap.Unity.Attributes.ImplementsInterfaceAttribute, Leap.Unity.Attributes.ImplementsTypeNameDropdownAttribute, Leap.Unity.Attributes.InspectorNameAttribute, Leap.Unity.Attributes.MinMax

class ImplementsInterfaceAttribute : public Leap.Unity.Attributes.CombinablePropertyAttribute, public Leap.Unity.Attributes.IPropertyConstrainer, public Leap.Unity.Attributes.IFullPropertyDrawer, public Leap.Unity.Attributes.ISupportDragAndDrop
class ImplementsTypeNameDropdownAttribute : public Leap.Unity.Attributes.CombinablePropertyAttribute, public Leap.Unity.Attributes.IFullPropertyDrawer

Place this attribute on a serialized string field to have it render as a dropdown menu that is automatically populated with implementing types of the type provided to the attribute. The string field will contain the type name selected by the user. This can be converted into a Type reference via reflection and used to construct objects by their type, for example, or to construct ScriptableObjects by their type.

class Incrementable : public Leap.Unity.Attributes.CombinablePropertyAttribute, public Leap.Unity.Attributes.IAfterFieldAdditiveDrawer
class InspectorNameAttribute : public Leap.Unity.Attributes.CombinablePropertyAttribute, public Leap.Unity.Attributes.IFullPropertyDrawer
interface IPropertyConstrainer

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

interface IPropertyDisabler

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

interface ISupportDragAndDrop

Subclassed by Leap.Unity.Attributes.ImplementsInterfaceAttribute

interface ITopPanelDrawer

Subclassed by Leap.Unity.Attributes.EditorGUIPanelAttribute

class MaxValue : public Leap.Unity.Attributes.CombinablePropertyAttribute, public Leap.Unity.Attributes.IPropertyConstrainer
class MinMax : public Leap.Unity.Attributes.CombinablePropertyAttribute, public Leap.Unity.Attributes.IFullPropertyDrawer
class MinValue : public Leap.Unity.Attributes.CombinablePropertyAttribute, public Leap.Unity.Attributes.IPropertyConstrainer
class OnEditorChangeAttribute : public Leap.Unity.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 QuickButtonAttribute : public Leap.Unity.Attributes.CombinablePropertyAttribute, public Leap.Unity.Attributes.IAfterFieldAdditiveDrawer
class ReadFileChooserAttribute : public Leap.Unity.Attributes.FileChooserAttribute
class RunTimeOnlyAttribute : public Leap.Unity.Attributes.CombinablePropertyAttribute, public Leap.Unity.Attributes.IPropertyDisabler
class UnitCurveAttribute : public Leap.Unity.Attributes.CurveBoundsAttribute

You can use this attribute to mark that an AnimationCurve can only have values that range from 0 to 1. The user will be prevented from entering a curve that lies outside of these bounds.

class UnitsAttribute : public Leap.Unity.Attributes.CombinablePropertyAttribute, public Leap.Unity.Attributes.IAfterFieldAdditiveDrawer
class WriteFileChooserAttribute : public Leap.Unity.Attributes.FileChooserAttribute