C# Class SmartArrayPropertyDrawer, Unity-SmartArrayPropertyDrawer

Inheritance: UnityEditor.PropertyDrawer
Mostra file Open project: KurataKazuaki/Unity-SmartArrayPropertyDrawer

Public Methods

Method Description
GetPropertyHeight ( UnityEditor.SerializedProperty property, GUIContent label ) : float

Gets the height of the property.

OnGUI ( Rect position, UnityEditor.SerializedProperty property, GUIContent label ) : void

Draw Property.

Private Methods

Method Description
CreateArrayElementMenuContents ( int index ) : GUIContent[]

Creates the array element menu contents.

CreateArraySizeMenuContents ( ) : GUIContent[]

Creates the array size menu contents.

DrawArrayExpander ( Rect &position, UnityEditor.SerializedProperty property, GUIContent label ) : void

Draws the array expander.

DrawArraySize ( Rect &position, UnityEditor.SerializedProperty property, Object targetObject, string targetPropertyPath, bool openMenu, Vector3 mousePos ) : void

Draws the size of the array.

OpenArrayElementMenu ( Object targetObject, string targetPropertyPath, int index, Vector3 mousePos ) : void

Opens the array element menu.

OpenArraySizeFieldMenu ( Object targetObject, string targetPropertyPath, Vector3 mousePos ) : void

Opens the array size field menu.

SelectArrayElementMenuCallback ( object userData, string options, int selected ) : void

Selects the array element menu's Callback.

SelectArraySizeMenuCallback ( object userData, string options, int selected ) : void

Selects the array size menu's Callback.

WantOpenMenu ( ) : bool

Wants the open menu?.

Method Details

GetPropertyHeight() public method

Gets the height of the property.
public GetPropertyHeight ( UnityEditor.SerializedProperty property, GUIContent label ) : float
property UnityEditor.SerializedProperty
label GUIContent
return float

OnGUI() public method

Draw Property.
public OnGUI ( Rect position, UnityEditor.SerializedProperty property, GUIContent label ) : void
position Rect
property UnityEditor.SerializedProperty
label GUIContent
return void