C# Class UnityEditor.UI.FontDataDrawer

Inheritance: PropertyDrawer
显示文件 Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Public Methods

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

Protected Methods

Method Description
Init ( SerializedProperty property ) : void

Initialize the serialized properties for the drawer.

Private Methods

Method Description
DoHorizontalAligmentControl ( Rect position, SerializedProperty alignment ) : void
DoTextAligmentControl ( Rect position, SerializedProperty alignment ) : void
DoVerticalAligmentControl ( Rect position, SerializedProperty alignment ) : void
EditorToggle ( Rect position, bool value, GUIContent content, GUIStyle style ) : bool
GetAnchor ( VerticalTextAligment verticalTextAligment, HorizontalTextAligment horizontalTextAligment ) : TextAnchor
GetHorizontalAlignment ( TextAnchor ta ) : HorizontalTextAligment
GetVerticalAlignment ( TextAnchor ta ) : VerticalTextAligment
SetHorizontalAlignment ( SerializedProperty alignment, HorizontalTextAligment horizontalAlignment ) : void
SetVerticalAlignment ( SerializedProperty alignment, VerticalTextAligment verticalAlignment ) : void

Method Details

GetPropertyHeight() public method

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

Init() protected method

Initialize the serialized properties for the drawer.

protected Init ( SerializedProperty property ) : void
property SerializedProperty
return void

OnGUI() public method

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