docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class PropertyInspector<TValue, TAttribute>

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

    Inheritance
    object
    InspectorBase<TValue>
    PropertyInspector<TValue, TAttribute>
    Inherited Members
    InspectorBase<TValue>.Target
    InspectorBase<TValue>.Name
    InspectorBase<TValue>.Part
    InspectorBase<TValue>.DisplayName
    InspectorBase<TValue>.Tooltip
    InspectorBase<TValue>.IsDelayed
    InspectorBase<TValue>.IsReadOnly
    InspectorBase<TValue>.PropertyPath
    InspectorBase<TValue>.HasAttribute<TAttribute>()
    InspectorBase<TValue>.GetAttribute<TAttribute>()
    InspectorBase<TValue>.GetAttributes<TAttribute>()
    InspectorBase<TValue>.GetContext<TInspectionContext>(string)
    InspectorBase<TValue>.HasContext<TInspectionContext>(string)
    InspectorBase<TValue>.Build()
    InspectorBase<TValue>.Update()
    InspectorBase<TValue>.IsPathValid(PropertyPath)
    InspectorBase<TValue>.Type
    InspectorBase<TValue>.DoDefaultGui(VisualElement, string)
    InspectorBase<TValue>.DoDefaultGui(VisualElement, PropertyPath)
    InspectorBase<TValue>.DoDefaultGuiAtIndex(VisualElement, int)
    InspectorBase<TValue>.DoDefaultGuiAtKey<TKey>(VisualElement, TKey)
    InspectorBase<TValue>.DoDefaultGui()
    InspectorBase<TValue>.NotifyChanged()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Properties.UI
    Assembly: Unity.Properties.UI.Editor.dll
    Syntax
    public abstract class PropertyInspector<TValue, TAttribute> : InspectorBase<TValue> 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
    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)