docs.unity.cn
    Show / Hide Table of Contents

    Class ColorBlockDrawer

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

    Methods

    GetPropertyHeight(SerializedProperty, GUIContent)

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

    OnGUI(Rect, SerializedProperty, GUIContent)

    Declaration
    public override void OnGUI(Rect rect, SerializedProperty prop, GUIContent label)
    Parameters
    Type Name Description
    Rect rect
    SerializedProperty prop
    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