Class PartitionElementDrawer
drawer for elements in the list of a partition
Inheritance
PartitionElementDrawer
Assembly: cs.temp.dll.dll
public class PartitionElementDrawer : PropertyDrawer
Methods
Get the index of a serialized property in a serialized array
Declaration
public static int GetIndexFromPath(string path)
Parameters
Type |
Name |
Description |
String |
path |
SerializedProperty.propertyPath
|
Returns
Type |
Description |
Int32 |
index or -1 if not found
|
GetPropertyHeight(SerializedProperty, GUIContent)
Declaration
public override float GetPropertyHeight(SerializedProperty property, GUIContent label)
Parameters
Type |
Name |
Description |
SerializedProperty |
property |
|
GUIContent |
label |
|
Returns
OnGUI(Rect, SerializedProperty, GUIContent)
Declaration
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
Parameters
Type |
Name |
Description |
Rect |
position |
|
SerializedProperty |
property |
|
GUIContent |
label |
|