docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class SpriteStateDrawer

    Inheritance
    object
    GUIDrawer
    PropertyDrawer
    SpriteStateDrawer
    Inherited Members
    PropertyDrawer.CanCacheInspectorGUI(SerializedProperty)
    PropertyDrawer.attribute
    PropertyDrawer.fieldInfo
    PropertyDrawer.preferredLabel
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.UI
    Assembly: UnityEditor.UI.dll
    Syntax
    [CustomPropertyDrawer(typeof(SpriteState), true)]
    public class SpriteStateDrawer : PropertyDrawer

    Methods

    CreatePropertyGUI(SerializedProperty)

    Declaration
    public override VisualElement CreatePropertyGUI(SerializedProperty property)
    Parameters
    Type Name Description
    SerializedProperty property
    Returns
    Type Description
    VisualElement
    Overrides
    PropertyDrawer.CreatePropertyGUI(SerializedProperty)

    GetPropertyHeight(SerializedProperty, GUIContent)

    Declaration
    public override float GetPropertyHeight(SerializedProperty prop, GUIContent label)
    Parameters
    Type Name Description
    SerializedProperty prop
    GUIContent label
    Returns
    Type Description
    float
    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)
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)