docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class UIntDrawer

    Creates proper VisualElement for the uint data

    Inheritance
    object
    GUIDrawer
    PropertyDrawer
    UIntDrawer
    Inherited Members
    PropertyDrawer.CanCacheInspectorGUI(SerializedProperty)
    PropertyDrawer.attribute
    PropertyDrawer.fieldInfo
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.Perception.Randomization.PropertyDrawers
    Assembly: Unity.Perception.Editor.dll
    Syntax
    [CustomPropertyDrawer(typeof(uint))]
    public class UIntDrawer : PropertyDrawer

    Methods

    CreatePropertyGUI(SerializedProperty)

    Create proper Visual Element for the uint data

    Declaration
    public override VisualElement CreatePropertyGUI(SerializedProperty property)
    Parameters
    Type Name Description
    SerializedProperty property

    Property to draw

    Returns
    Type Description
    VisualElement

    Proper UI representation for the uint data

    Overrides
    PropertyDrawer.CreatePropertyGUI(SerializedProperty)

    GetPropertyHeight(SerializedProperty, GUIContent)

    Returns the proper height for the drawable property

    Declaration
    public override float GetPropertyHeight(SerializedProperty property, GUIContent label)
    Parameters
    Type Name Description
    SerializedProperty property

    Property to calculate

    GUIContent label

    Label to use

    Returns
    Type Description
    float

    Height of the visual element as float

    Overrides
    PropertyDrawer.GetPropertyHeight(SerializedProperty, GUIContent)

    OnGUI(Rect, SerializedProperty, GUIContent)

    Draws the property

    Declaration
    public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
    Parameters
    Type Name Description
    Rect position

    Area to draw

    SerializedProperty property

    Property to draw

    GUIContent label

    Label to use

    Overrides
    PropertyDrawer.OnGUI(Rect, SerializedProperty, GUIContent)
    In This Article
    Back to top
    Copyright © 2024 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)