Class PropertyDrawer<TValue, TAttribute> | Properties UI | 1.4.4-preview.1
docs.unity3d.com
    Show / Hide Table of Contents

    Class PropertyDrawer<TValue, TAttribute>

    Base class for defining a custom inspector for field values of type when it is tagged with an attribute of type .

    Inheritance
    Object
    Inspector<TValue>
    PropertyDrawer<TValue, TAttribute>
    InspectorAndDrawerTypeTypeDrawer
    InspectorAndDrawerTypeTypeDrawerWithTag
    NoInspectorButDrawerTypeDrawer
    Inherited Members
    Inspector<TValue>.Target
    Inspector<TValue>.Name
    Inspector<TValue>.Part
    Inspector<TValue>.DisplayName
    Inspector<TValue>.Tooltip
    Inspector<TValue>.IsDelayed
    Inspector<TValue>.IsReadOnly
    Inspector<TValue>.PropertyPath
    Inspector<TValue>.HasAttribute<TAttribute>()
    Inspector<TValue>.GetAttribute<TAttribute>()
    Inspector<TValue>.GetAttributes<TAttribute>()
    Inspector<TValue>.GetContext<TInspectionContext>(String)
    Inspector<TValue>.HasContext<TInspectionContext>(String)
    Inspector<TValue>.Build()
    Inspector<TValue>.Update()
    Inspector<TValue>.IsPathValid(PropertyPath)
    Inspector<TValue>.Type
    Inspector<TValue>.DoDefaultGui(VisualElement, String)
    Inspector<TValue>.DoDefaultGui(VisualElement, PropertyPath)
    Inspector<TValue>.DoDefaultGuiAtIndex(VisualElement, Int32)
    Inspector<TValue>.DoDefaultGuiAtKey<TKey>(VisualElement, TKey)
    Inspector<TValue>.DoDefaultGui()
    Inspector<TValue>.NotifyChanged()
    Namespace: Unity.Properties.UI
    Syntax
    public abstract class PropertyDrawer<TValue, TAttribute> : Inspector<TValue>, IInspector<TValue>, IInspector, IPropertyDrawer<TAttribute>, IPropertyDrawer where TAttribute : PropertyAttribute
    Type Parameters
    Name Description
    TValue

    The type of the field value to inspect.

    TAttribute

    The property drawer type.

    Properties

    DrawerAttribute

    Returns the PropertyAttribute of the field.

    Declaration
    protected TAttribute DrawerAttribute { get; }
    Property Value
    Type Description
    TAttribute
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023