C# Class LabelSearchDrawer, property-drawer-collection

Inheritance: UnityEditor.PropertyDrawer
Mostrar archivo Open project: anchan828/property-drawer-collection

Private Properties

Property Type Description
DrawArrayProperty void
DrawCachedArrayProperty void
DrawCachedSingleProperty void
DrawSingleProperty void
GetAllAssetPath string[]
GetType System.Type

Public Methods

Method Description
GetPropertyHeight ( UnityEditor.SerializedProperty property, GUIContent label ) : float
OnGUI ( Rect position, UnityEditor.SerializedProperty property, GUIContent label ) : void

Private Methods

Method Description
DrawArrayProperty ( Rect position, UnityEditor.SerializedProperty property, GUIContent label ) : void

該当するアセットを複数検索して描画する

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

キャッシュされた配列を使用して描画する

負荷削減のため一定間隔で検索を行うようにした

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

キャッシュされたプロパティを使用して描画する

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

アセットを検索して描画する

GetAllAssetPath ( ) : string[]

全てのアセットのパスを取得

GetType ( UnityEditor.SerializedProperty property ) : Type

プロパティからTypeを取得

Method Details

GetPropertyHeight() public method

public GetPropertyHeight ( UnityEditor.SerializedProperty property, GUIContent label ) : float
property UnityEditor.SerializedProperty
label GUIContent
return float

OnGUI() public method

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