docs.unity.cn
    Show / Hide Table of Contents

    Class FontDataDrawer

    Inheritance
    Object
    GUIDrawer
    PropertyDrawer
    FontDataDrawer
    Inherited Members
    PropertyDrawer.CreatePropertyGUI(SerializedProperty)
    PropertyDrawer.CanCacheInspectorGUI(SerializedProperty)
    PropertyDrawer.attribute
    PropertyDrawer.fieldInfo
    Namespace: UnityEditor.UI
    Syntax
    [CustomPropertyDrawer(typeof(FontData), true)]
    public class FontDataDrawer : PropertyDrawer

    Methods

    GetPropertyHeight(SerializedProperty, GUIContent)

    Declaration
    public override float GetPropertyHeight(SerializedProperty property, GUIContent label)
    Parameters
    Type Name Description
    SerializedProperty property
    GUIContent label
    Returns
    Type Description
    Single
    Overrides
    PropertyDrawer.GetPropertyHeight(SerializedProperty, GUIContent)

    Init(SerializedProperty)

    Declaration
    protected void Init(SerializedProperty property)
    Parameters
    Type Name Description
    SerializedProperty property

    OnGUI(Rect, SerializedProperty, GUIContent)

    Declaration
    public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
    Parameters
    Type Name Description
    Rect position
    SerializedProperty property
    GUIContent label
    Overrides
    PropertyDrawer.OnGUI(Rect, SerializedProperty, GUIContent)
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 12 June 2023