docs.unity3d.com
    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
    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