docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class GameViewSize

    Inheritance
    object
    GameViewSize
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: UnityEditor.TestTools.Graphics
    Assembly: solution.dll
    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(int, int)

    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
    int width
    int height
    Returns
    Type Description
    object

    BackupCurrentSize()

    Declaration
    public static void BackupCurrentSize()

    GetGameRenderSize(out int, out int)

    Get the Game View size

    Declaration
    public static void GetGameRenderSize(out int width, out int height)
    Parameters
    Type Name Description
    int width
    int 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(int, int)

    Create and set a custom size for the Game View

    Declaration
    public static object SetCustomSize(int width, int height)
    Parameters
    Type Name Description
    int width
    int height
    Returns
    Type Description
    object
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)