docs.unity.cn
    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 Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Wednesday, July 6, 2022
    Terms of use