CinemachineGameWindowDebug.GetScreenPos Method

Cinemachine

CinemachineGameWindowDebugGetScreenPos Method

Reserve an on-screen rectangle for debugging output.

Namespace:  Cinemachine.Utility
Assembly:  Cinemachine (in Cinemachine.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
public static Rect GetScreenPos(
	Object client,
	string text,
	GUIStyle style
)
Cinemachine.Utility.CinemachineGameWindowDebug.GetScreenPos = function(client, text, style);

Parameters

client
Type: Object
The client caller. This is used as a handle.
text
Type: SystemString
Sample text, for determining rectangle size
style
Type: GUIStyle
What style will be used to draw, used here for determining rect size

Return Value

Type: Rect
An area on the game screen large enough to print the text in the style indicated
See Also