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