C# Class UnityToolbag.SortableArrayInspector

Inheritance: UnityEditor.Editor
Exibir arquivo Open project: ChemiKhazi/UnityToolbag

Protected Properties

Property Type Description
hasSortableArrays bool
isInitialized bool
listIndex List

Public Methods

Method Description
OnInspectorGUI ( ) : void

Protected Methods

Method Description
DrawDefaultSortable ( ) : void

Draw the default inspector, with the sortable arrays

DrawPropertiesFrom ( string propertyStart ) : void

Draw the default inspector, starting from a given property

DrawPropertiesFromUpTo ( string propertyStart, string propertyStop ) : void

Draw the default inspector, starting from a given property to a stopping property

DrawPropertiesUpTo ( string propertyStop ) : void

Draw the default inspector, up to a given property

DrawPropertySortableArray ( UnityEditor.SerializedProperty property ) : void

Draw a SerializedProperty as a ReorderableList if it was found during initialization, otherwise use EditorGUILayout.PropertyField

DrawSortableExcept ( ) : void

Draw the default inspector, except for the given property names

GetGrandParentPath ( UnityEditor.SerializedProperty property ) : string
GetSortableList ( UnityEditor.SerializedProperty property ) : ReorderableList
InitInspector ( ) : void
IterateSerializedProp ( UnityEditor.SerializedProperty property ) : void

Private Methods

Method Description
CreateListData ( UnityEditor.SerializedProperty property ) : void
OnEnable ( ) : void

Method Details

DrawDefaultSortable() protected method

Draw the default inspector, with the sortable arrays
protected DrawDefaultSortable ( ) : void
return void

DrawPropertiesFrom() protected method

Draw the default inspector, starting from a given property
protected DrawPropertiesFrom ( string propertyStart ) : void
propertyStart string Property name to start from
return void

DrawPropertiesFromUpTo() protected method

Draw the default inspector, starting from a given property to a stopping property
protected DrawPropertiesFromUpTo ( string propertyStart, string propertyStop ) : void
propertyStart string Property name to start from
propertyStop string Property name to stop at
return void

DrawPropertiesUpTo() protected method

Draw the default inspector, up to a given property
protected DrawPropertiesUpTo ( string propertyStop ) : void
propertyStop string Property name to stop at
return void

DrawPropertySortableArray() protected method

Draw a SerializedProperty as a ReorderableList if it was found during initialization, otherwise use EditorGUILayout.PropertyField
protected DrawPropertySortableArray ( UnityEditor.SerializedProperty property ) : void
property UnityEditor.SerializedProperty
return void

DrawSortableExcept() protected method

Draw the default inspector, except for the given property names
protected DrawSortableExcept ( ) : void
return void

GetGrandParentPath() protected static method

protected static GetGrandParentPath ( UnityEditor.SerializedProperty property ) : string
property UnityEditor.SerializedProperty
return string

GetSortableList() protected method

protected GetSortableList ( UnityEditor.SerializedProperty property ) : ReorderableList
property UnityEditor.SerializedProperty
return UnityEditorInternal.ReorderableList

InitInspector() protected method

protected InitInspector ( ) : void
return void

IterateSerializedProp() protected method

protected IterateSerializedProp ( UnityEditor.SerializedProperty property ) : void
property UnityEditor.SerializedProperty
return void

OnInspectorGUI() public method

public OnInspectorGUI ( ) : void
return void

Property Details

hasSortableArrays protected_oe property

protected bool hasSortableArrays
return bool

isInitialized protected_oe property

protected bool isInitialized
return bool

listIndex protected_oe property

protected List listIndex
return List