docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class DirDrawer

    Draws the Inspector GUI for an optional dir property

    Inheritance
    object
    GUIDrawer
    PropertyDrawer
    DirDrawer
    Inherited Members
    PropertyDrawer.OnGUI(Rect, SerializedProperty, GUIContent)
    PropertyDrawer.GetPropertyHeight(SerializedProperty, GUIContent)
    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: Unity.AppUI.Editor
    Assembly: Unity.AppUI.Editor.dll
    Syntax
    [CustomPropertyDrawer(typeof(DefaultPropertyDrawerAttribute))]
    public class DirDrawer : PropertyDrawer

    Methods

    CreatePropertyGUI(SerializedProperty)

    Creates custom GUI with UI Toolkit for the property.

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

    The SerializedProperty to make the custom GUI for.

    Returns
    Type Description
    VisualElement

    The element containing the custom GUI.

    Overrides
    PropertyDrawer.CreatePropertyGUI(SerializedProperty)
    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)