docs.unity.cn
    Show / Hide Table of Contents

    Method ShowInWindow

    ShowInWindow<T>(T)

    Opens a new window and display the provided content.

    Declaration
    public static void ShowInWindow<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.

    ShowInWindow<T>(T, ContentWindowParameters)

    Opens a new window and display the provided content.

    Declaration
    public static EditorWindow ShowInWindow<T>(T content, ContentWindowParameters options)
        where T : ContentProvider, new()
    Parameters
    Type Name Description
    T content

    The content to display.

    ContentWindowParameters options

    The options used to configure the host EditorWindow

    Returns
    Type Description
    EditorWindow
    Type Parameters
    Name Description
    T

    The typeof the content. Must be default constructable.

    Exceptions
    Type Condition
    ArgumentNullException

    The content cannot be null.

    ShowInWindow(Object)

    Opens a new window and display the provided Object.

    Declaration
    public static EditorWindow ShowInWindow(Object content)
    Parameters
    Type Name Description
    Object content

    The Object to display.

    Returns
    Type Description
    EditorWindow
    Exceptions
    Type Condition
    ArgumentNullException

    The content cannot be null.

    ShowInWindow(Object, ContentWindowParameters)

    Opens a new window and display the provided Object.

    Declaration
    public static EditorWindow ShowInWindow(Object content, ContentWindowParameters options)
    Parameters
    Type Name Description
    Object content

    The Object to display.

    ContentWindowParameters options

    The options used to configure the host EditorWindow

    Returns
    Type Description
    EditorWindow
    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