Interface IInspector<T> | Properties | 0.10.4-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Interface IInspector<T>

    Allows to declare a type as custom inspector for the specified type.

    Namespace: Unity.Properties.Editor
    Syntax
    public interface IInspector<T>
    Type Parameters
    Name Description
    T

    Methods

    Build(InspectorContext<T>)

    Called whenever the UI needs to be rebuilt.

    Declaration
    VisualElement Build(InspectorContext<T> context)
    Parameters
    Type Name Description
    InspectorContext<T> context

    Context object for the inspector.

    Returns
    Type Description
    VisualElement

    The root visual element to use for the inspection.

    Update(InspectorContext<T>)

    Called whenever the underlying data changed, so the custom inspector can update it's data.

    Declaration
    void Update(InspectorContext<T> context)
    Parameters
    Type Name Description
    InspectorContext<T> context

    Context object for the inspector.

    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