Struct InspectorContext<T> | Properties | 0.9.2-preview
docs.unity.cn
    Show / Hide Table of Contents

    Struct InspectorContext<T>

    Context of the inspector that give access to the data.

    Namespace: Unity.Properties.Editor
    Syntax
    public struct InspectorContext<T>
    Type Parameters
    Name Description
    T

    The type of the value being inspected.

    Fields

    IsDelayed

    Declaration
    public readonly bool IsDelayed
    Field Value
    Type Description
    Boolean

    Name

    Declaration
    public readonly string Name
    Field Value
    Type Description
    String

    PrettyName

    Declaration
    public readonly string PrettyName
    Field Value
    Type Description
    String

    Tooltip

    Declaration
    public readonly string Tooltip
    Field Value
    Type Description
    String

    VisitLevel

    Declaration
    public readonly InspectorVisitLevel VisitLevel
    Field Value
    Type Description
    InspectorVisitLevel

    Properties

    Attributes

    Declaration
    public IPropertyAttributeCollection Attributes { get; }
    Property Value
    Type Description
    IPropertyAttributeCollection

    Data

    Accessor for the data.

    Declaration
    public T Data { get; set; }
    Property Value
    Type Description
    T

    Methods

    DoDefaultGui(VisualElement, String)

    Allows to revert to the default drawing handler for a specific field.

    Declaration
    public void DoDefaultGui(VisualElement parent, string name)
    Parameters
    Type Name Description
    VisualElement parent

    The parent element.

    String name

    The name of the field that needs to be drawn.

    NotifyChanged()

    Declaration
    public void NotifyChanged()
    Back to top Copyright © 2019 Unity Technologies
    Generated by DocFX