DIFF

class DebugTextWorldSpaceSource

DebugTextWorldSpace DebugText Managed

All members, including inherited

Constructors 2

private void DebugTextWorldSpace()
void ~DebugTextWorldSpace()

Methods 6

proto external vector GetPosition()
proto external void SetPosition(float x, float y, float z)
proto external void SetTransform(vector mat[4])

Sets the transformation matrix of the text. Useful only for texts created with CreateInWorld().

proto void GetTransform(out vector mat[4])

Returns the transformation matrix of the text. Useful only for texts created with CreateInWorld().

static proto DebugTextWorldSpace Create(string text, DebugTextFlags flags, float x, float y, float z, float size = 20.0, int color = 0xFFFFFFFF, int bgColor = 0x00000000, int priority = 1000)

Creates a text instance.

text
Text to draw on screen
flags
DebugTextFlags
x
X coordinate of the top left corner of the text in world space
y
Y coordinate of the top left corner of the text in world space
z
Z coordinate of the top left corner of the text in world space
size
Size of the font in pixels
color
Color of the text
bgColor
Color of the back background behind the text
priority
Z order priority. Note: texts with background are always rendered under texts without background.

Returns: DebugText Instance of debug text with given properties set, if flags contains DebugTextFlags.ONCE null is returned

WarningReturned instance should be saved to `ref`, otherwise it is impossible to remove from screen (unless DebugTextFlags.ONCE is used).
Referenced by Debug.DrawTextWS()
static proto DebugTextWorldSpace CreateInWorld(string text, DebugTextFlags flags, vector transform[4], float size = 20.0, int color = 0xFFFFFFFF, int bgColor = 0x00000000, int priority = 1000)

The text is placed in world and is occluded by other objects. The size is in meters (approximately).

size
Size of the font in meters (approximately)

See also: DebugTextWorldSpace.Create