Class CinemachineGameWindowDebug | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class CinemachineGameWindowDebug

    Manages onscreen positions for Cinemachine debugging output

    Inheritance
    System.Object
    CinemachineGameWindowDebug
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ToString()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: Cinemachine.Utility
    Syntax
    public class CinemachineGameWindowDebug

    Methods

    GetScreenPos(Object, String, GUIStyle)

    Reserve an on-screen rectangle for debugging output.

    Declaration
    public static Rect GetScreenPos(Object client, string text, GUIStyle style)
    Parameters
    Type Name Description
    Object client

    The client caller. This is used as a handle.

    System.String text

    Sample text, for determining rectangle size

    GUIStyle style

    What style will be used to draw, used here for determining rect size

    Returns
    Type Description
    Rect

    An area on the game screen large enough to print the text in the style indicated

    ReleaseScreenPos(Object)

    Release a screen rectangle previously obtained through GetScreenPos()

    Declaration
    public static void ReleaseScreenPos(Object client)
    Parameters
    Type Name Description
    Object client

    The client caller. Used as a handle.

    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