Tanoda
Leap.Unity.Packaging.DefinitionBaseEditor< T > Class Template Referenceabstract
Inheritance diagram for Leap.Unity.Packaging.DefinitionBaseEditor< T >:
Leap.Unity.CustomEditorBase< T >

Protected Member Functions

override void OnEnable ()
 
abstract void OnBuild ()
 
abstract int GetBuildMenuPriority ()
 
abstract string GetBuildMethodName ()
 
void drawExportFolder (SerializedProperty prop, string buildText, string label)
 
ReorderableList createList (string propertyName, Action< Rect, SerializedProperty > drawMethod)
 
- Protected Member Functions inherited from Leap.Unity.CustomEditorBase< T >
override void OnEnable ()
 
void dontShowScriptField ()
 
void specifyCustomDrawer (string propertyName, Action< SerializedProperty > propertyDrawer)
 Specify a callback to be used to draw a specific named property. Should be called in OnEnable. More...
 
void specifyCustomDecorator (string propertyName, Action< SerializedProperty > decoratorDrawer)
 Specify a callback to be used to draw a decorator for a specific named property. Should be called in OnEnable. More...
 
void specifyCustomPostDecorator (string propertyName, Action< SerializedProperty > decoratorDrawer)
 Specify a callback to be used to draw a decorator AFTER a specific named property. More...
 
void specifyConditionalDrawing (string conditionalName, params string[] dependantProperties)
 Specify a list of properties that should only be displayed if the conditional property has a value of true. Should be called in OnEnable. More...
 
void specifyConditionalDrawing (string enumName, int enumValue, params string[] dependantProperties)
 
void hideField (string propertyName)
 
void specifyConditionalDrawing (Func< bool > conditional, params string[] dependantProperties)
 
void deferProperty (string propertyName)
 Defer rendering of a property until the end of the inspector. Deferred properties are drawn in the REVERSE order they are deferred! NOT by the order they appear in the serialized object! More...
 
void addPropertyToFoldout (string propertyName, string foldoutName, bool foldoutStartOpen=false)
 Condition the drawing of a property based on the status of a foldout drop-down. More...
 
bool isInFoldout (string propertyName)
 Check whether a property is inside of a foldout drop-down. More...
 
void drawScriptField (bool disable=true)
 
virtual void OnEnable ()
 
bool validateProperty (string propertyName)
 

Additional Inherited Members

- Public Member Functions inherited from Leap.Unity.CustomEditorBase< T >
override void OnInspectorGUI ()
 
- Protected Attributes inherited from Leap.Unity.CustomEditorBase< T >
new T target
 
new T[] targets
 
Dictionary< string, Action< SerializedProperty > > _specifiedDrawers
 
Dictionary< string, List< Action< SerializedProperty > > > _specifiedDecorators
 
Dictionary< string, List< Action< SerializedProperty > > > _specifiedPostDecorators
 
Dictionary< string, List< Func< bool > > > _conditionalProperties
 
Dictionary< string, List< string > > _foldoutProperties
 
Dictionary< string, bool > _foldoutStates
 
List< string > _deferredProperties
 
bool _showScriptField = true
 
List< SerializedProperty > _modifiedProperties = new List<SerializedProperty>()
 

Detailed Description

Type Constraints
T :DefinitionBase 

Definition at line 20 of file DefinitionBaseEditor.cs.

Member Function Documentation

◆ createList()

ReorderableList Leap.Unity.Packaging.DefinitionBaseEditor< T >.createList ( string  propertyName,
Action< Rect, SerializedProperty >  drawMethod 
)
protected

Definition at line 117 of file DefinitionBaseEditor.cs.

◆ drawExportFolder()

void Leap.Unity.Packaging.DefinitionBaseEditor< T >.drawExportFolder ( SerializedProperty  prop,
string  buildText,
string  label 
)
protected

Definition at line 35 of file DefinitionBaseEditor.cs.

◆ GetBuildMenuPriority()

abstract int Leap.Unity.Packaging.DefinitionBaseEditor< T >.GetBuildMenuPriority ( )
protectedpure virtual

◆ GetBuildMethodName()

abstract string Leap.Unity.Packaging.DefinitionBaseEditor< T >.GetBuildMethodName ( )
protectedpure virtual

◆ OnBuild()

◆ OnEnable()

override void Leap.Unity.Packaging.DefinitionBaseEditor< T >.OnEnable ( )
protectedvirtual

Reimplemented from Leap.Unity.CustomEditorBase< T >.

Definition at line 22 of file DefinitionBaseEditor.cs.


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