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. |