Struct InspectorContext<T> | Properties | 0.10.4-preview
docs.unity3d.com
    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 © 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