C# 클래스 Ludiq.Reflection.Editor.TargetedDrawer

상속: UnityEditor.PropertyDrawer
파일 보기 프로젝트 열기: lazlo-bonin/unity-reflection

보호된 프로퍼티들

프로퍼티 타입 설명
isSelfTargeted bool
targetProperty UnityEditor.SerializedProperty

공개 메소드들

메소드 설명
GetPropertyHeight ( UnityEditor.SerializedProperty property, GUIContent label ) : float

Calculates the height of the drawer.

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

Renders the drawer.

보호된 메소드들

메소드 설명
GetSelfTarget ( Object obj ) : Object

Returns the object assigned as self-target from a serialized object.

RenderMemberControl ( Rect position ) : void
RenderTargetControl ( Rect position ) : void
Update ( UnityEditor.SerializedProperty property ) : void

Initializes the members of the drawer via the specified property.

메소드 상세

GetPropertyHeight() 공개 메소드

Calculates the height of the drawer.
public GetPropertyHeight ( UnityEditor.SerializedProperty property, GUIContent label ) : float
property UnityEditor.SerializedProperty
label UnityEngine.GUIContent
리턴 float

GetSelfTarget() 보호된 메소드

Returns the object assigned as self-target from a serialized object.
protected GetSelfTarget ( Object obj ) : Object
obj UnityEngine.Object
리턴 UnityEngine.Object

OnGUI() 공개 메소드

Renders the drawer.
public OnGUI ( Rect position, UnityEditor.SerializedProperty property, GUIContent label ) : void
position UnityEngine.Rect
property UnityEditor.SerializedProperty
label UnityEngine.GUIContent
리턴 void

RenderMemberControl() 보호된 추상적인 메소드

protected abstract RenderMemberControl ( Rect position ) : void
position UnityEngine.Rect
리턴 void

RenderTargetControl() 보호된 메소드

protected RenderTargetControl ( Rect position ) : void
position UnityEngine.Rect
리턴 void

Update() 보호된 메소드

Initializes the members of the drawer via the specified property.
protected Update ( UnityEditor.SerializedProperty property ) : void
property UnityEditor.SerializedProperty
리턴 void

프로퍼티 상세

isSelfTargeted 보호되어 있는 프로퍼티

Whether the self-targeted attribute is defined on the inspected field.
protected bool isSelfTargeted
리턴 bool

targetProperty 보호되어 있는 프로퍼티

The UnityMember.target of the inspected property, of type Object.
protected SerializedProperty,UnityEditor targetProperty
리턴 UnityEditor.SerializedProperty