C# Класс SmartArrayPropertyDrawer, Unity-SmartArrayPropertyDrawer

Наследование: UnityEditor.PropertyDrawer
Показать файл Открыть проект

Открытые методы

Метод Описание
GetPropertyHeight ( UnityEditor.SerializedProperty property, GUIContent label ) : float

Gets the height of the property.

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

Draw Property.

Приватные методы

Метод Описание
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?.

Описание методов

GetPropertyHeight() публичный Метод

Gets the height of the property.
public GetPropertyHeight ( UnityEditor.SerializedProperty property, GUIContent label ) : float
property UnityEditor.SerializedProperty
label GUIContent
Результат float

OnGUI() публичный Метод

Draw Property.
public OnGUI ( Rect position, UnityEditor.SerializedProperty property, GUIContent label ) : void
position Rect
property UnityEditor.SerializedProperty
label GUIContent
Результат void