C# 클래스 SmartArrayPropertyDrawer, Unity-SmartArrayPropertyDrawer

상속: UnityEditor.PropertyDrawer
파일 보기 프로젝트 열기: KurataKazuaki/Unity-SmartArrayPropertyDrawer

공개 메소드들

메소드 설명
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