Class GameViewSize | Graphics Tests Framework | 7.7.1-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Class GameViewSize

    Inheritance
    Object
    GameViewSize
    Namespace: UnityEditor.TestTools.Graphics
    Syntax
    public static class GameViewSize

    Properties

    currentSize

    Current size of the Game View

    Declaration
    public static object currentSize { get; }
    Property Value
    Type Description
    Object

    Methods

    AddSize(Int32, Int32)

    Add a custom game view size to the list of available sizes

    Declaration
    public static object AddSize(int width, int height)
    Parameters
    Type Name Description
    Int32 width
    Int32 height
    Returns
    Type Description
    Object

    BackupCurrentSize()

    Declaration
    public static void BackupCurrentSize()

    GetGameRenderSize(out Int32, out Int32)

    Get the Game View size

    Declaration
    public static void GetGameRenderSize(out int width, out int height)
    Parameters
    Type Name Description
    Int32 width
    Int32 height

    RestoreSize()

    Declaration
    public static void RestoreSize()

    SelectSize(Object)

    Select a Game View size

    Declaration
    public static void SelectSize(object size)
    Parameters
    Type Name Description
    Object size

    SetCustomSize(Int32, Int32)

    Create and set a custom size for the Game View

    Declaration
    public static object SetCustomSize(int width, int height)
    Parameters
    Type Name Description
    Int32 width
    Int32 height
    Returns
    Type Description
    Object
    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