docs.unity3d.com
    Show / Hide Table of Contents

    Method ShowInInspector

    ShowInInspector<T>(T)

    Sets the provided content as the global active object.

    Declaration
    public static void ShowInInspector<T>(T content)
        where T : ContentProvider, new()
    Parameters
    Type Name Description
    T content

    The content to display.

    Type Parameters
    Name Description
    T

    The typeof the content. Must be default constructable.

    Exceptions
    Type Condition
    ArgumentNullException

    The content cannot be null.

    ShowInInspector<T>(T, InspectorContentParameters)

    Sets the provided content as the global active object.

    Declaration
    public static void ShowInInspector<T>(T content, InspectorContentParameters parameters)
        where T : ContentProvider, new()
    Parameters
    Type Name Description
    T content

    The content to display.

    InspectorContentParameters parameters
    Type Parameters
    Name Description
    T

    The typeof the content. Must be default constructable.

    Exceptions
    Type Condition
    ArgumentNullException

    The content cannot be null.

    ShowInInspector(Object)

    Sets the provided Object as the global active object.

    Declaration
    public static void ShowInInspector(Object content)
    Parameters
    Type Name Description
    Object content

    The Object to display.

    Exceptions
    Type Condition
    ArgumentNullException

    The content cannot be null.

    Back to top
    Terms of use
    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