Tanoda
Leap.Unity.CustomPropertyDrawerBase Class Reference
Inheritance diagram for Leap.Unity.CustomPropertyDrawerBase:
Leap.Unity.GraphicalRenderer.CustomChannelDataBaseDrawer Leap.Unity.GraphicalRenderer.CustomChannelFeatureDrawer Leap.Unity.GraphicalRenderer.LeapBlendShapeDataDrawer Leap.Unity.GraphicalRenderer.LeapBlendShapeFeatureDrawer Leap.Unity.GraphicalRenderer.LeapMesherBaseDrawer Leap.Unity.GraphicalRenderer.LeapRuntimeTintDataDrawer Leap.Unity.GraphicalRenderer.LeapRuntimeTintFeatureDrawer Leap.Unity.GraphicalRenderer.LeapSpriteDataDrawer Leap.Unity.GraphicalRenderer.LeapSpriteFeatureDrawer Leap.Unity.GraphicalRenderer.LeapTextRendererDrawer Leap.Unity.GraphicalRenderer.LeapTextureDataDrawer Leap.Unity.GraphicalRenderer.LeapTextureFeatureDrawer

Public Member Functions

 CustomPropertyDrawerBase ()
 
override void OnGUI (Rect position, SerializedProperty property, GUIContent label)
 
override float GetPropertyHeight (SerializedProperty property, GUIContent label)
 

Static Public Attributes

const float INDENT_AMOUNT = 12
 

Protected Member Functions

virtual void init (SerializedProperty property)
 
void drawPropertyConditionally (string propertyName, string conditionalName, bool includeChildren=true)
 
void drawPropertyConditionally (string propertyName, Func< bool > condition, bool includeChildren=true)
 
void drawProperty (string name, bool includeChildren=true, bool disable=false)
 
void drawProperty (string name, Func< string > nameFunc, bool includeChildren=true)
 
void drawCustom (Action< Rect > drawFunc, float height)
 
void drawCustom (Action< Rect > drawFunc, Func< float > heightFunc)
 
void increaseIndent ()
 
void decreaseIndent ()
 
bool tryGetProperty (string name, out SerializedProperty property)
 
bool validateProperty (string name)
 

Detailed Description

Definition at line 16 of file CustomPropertyDrawerBase.cs.

Constructor & Destructor Documentation

◆ CustomPropertyDrawerBase()

Leap.Unity.CustomPropertyDrawerBase.CustomPropertyDrawerBase ( )

Definition at line 25 of file CustomPropertyDrawerBase.cs.

Member Function Documentation

◆ decreaseIndent()

void Leap.Unity.CustomPropertyDrawerBase.decreaseIndent ( )
protected

Definition at line 154 of file CustomPropertyDrawerBase.cs.

◆ drawCustom() [1/2]

void Leap.Unity.CustomPropertyDrawerBase.drawCustom ( Action< Rect >  drawFunc,
float  height 
)
protected

Definition at line 134 of file CustomPropertyDrawerBase.cs.

◆ drawCustom() [2/2]

void Leap.Unity.CustomPropertyDrawerBase.drawCustom ( Action< Rect >  drawFunc,
Func< float >  heightFunc 
)
protected

Definition at line 141 of file CustomPropertyDrawerBase.cs.

◆ drawProperty() [1/2]

void Leap.Unity.CustomPropertyDrawerBase.drawProperty ( string  name,
bool  includeChildren = true,
bool  disable = false 
)
protected

Definition at line 100 of file CustomPropertyDrawerBase.cs.

◆ drawProperty() [2/2]

void Leap.Unity.CustomPropertyDrawerBase.drawProperty ( string  name,
Func< string >  nameFunc,
bool  includeChildren = true 
)
protected

Definition at line 117 of file CustomPropertyDrawerBase.cs.

◆ drawPropertyConditionally() [1/2]

void Leap.Unity.CustomPropertyDrawerBase.drawPropertyConditionally ( string  propertyName,
Func< bool >  condition,
bool  includeChildren = true 
)
protected

Definition at line 82 of file CustomPropertyDrawerBase.cs.

◆ drawPropertyConditionally() [2/2]

void Leap.Unity.CustomPropertyDrawerBase.drawPropertyConditionally ( string  propertyName,
string  conditionalName,
bool  includeChildren = true 
)
protected

Definition at line 64 of file CustomPropertyDrawerBase.cs.

◆ GetPropertyHeight()

override float Leap.Unity.CustomPropertyDrawerBase.GetPropertyHeight ( SerializedProperty  property,
GUIContent  label 
)

Definition at line 40 of file CustomPropertyDrawerBase.cs.

◆ increaseIndent()

void Leap.Unity.CustomPropertyDrawerBase.increaseIndent ( )
protected

Definition at line 148 of file CustomPropertyDrawerBase.cs.

◆ init()

◆ OnGUI()

override void Leap.Unity.CustomPropertyDrawerBase.OnGUI ( Rect  position,
SerializedProperty  property,
GUIContent  label 
)

Definition at line 30 of file CustomPropertyDrawerBase.cs.

◆ tryGetProperty()

bool Leap.Unity.CustomPropertyDrawerBase.tryGetProperty ( string  name,
out SerializedProperty  property 
)
protected

Definition at line 160 of file CustomPropertyDrawerBase.cs.

◆ validateProperty()

bool Leap.Unity.CustomPropertyDrawerBase.validateProperty ( string  name)
protected

Definition at line 171 of file CustomPropertyDrawerBase.cs.

Member Data Documentation

◆ INDENT_AMOUNT

const float Leap.Unity.CustomPropertyDrawerBase.INDENT_AMOUNT = 12
static

Definition at line 17 of file CustomPropertyDrawerBase.cs.


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