C# Class Ludiq.Reflection.Editor.TargetedDrawer

Inheritance: UnityEditor.PropertyDrawer
显示文件 Open project: lazlo-bonin/unity-reflection

Protected Properties

Property Type Description
isSelfTargeted bool
targetProperty UnityEditor.SerializedProperty

Public Methods

Method Description
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.

Protected Methods

Method Description
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.

Method Details

GetPropertyHeight() public method

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

GetSelfTarget() protected method

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

OnGUI() public method

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

RenderMemberControl() protected abstract method

protected abstract RenderMemberControl ( Rect position ) : void
position UnityEngine.Rect
return void

RenderTargetControl() protected method

protected RenderTargetControl ( Rect position ) : void
position UnityEngine.Rect
return void

Update() protected method

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

Property Details

isSelfTargeted protected_oe property

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

targetProperty protected_oe property

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