sm.debugDraw.addText
Adds text in world debug draw.
Kind: Function
Environments: Game, Terrain
Game
sm.debugDraw.addText( name, text, position, fade, scale, color )
Parameters:
| Name | Type | Description |
|---|---|---|
name |
string | The text name. |
text |
string | The text content. |
position |
Vec3 | The world position of the text. |
fade (optional) |
boolean | If the text should fade. Defaults to false. |
scale (optional) |
number | The scale of the text. Defaults to 30. |
color (optional) |
Color | The color. Defaults to white. |
Terrain
sm.debugDraw.addText( name, text, position, fade, scale, color )
Open the full Terrain reference
Parameters:
| Name | Type | Description |
|---|---|---|
name |
string | The text name. |
text |
string | The text content. |
position |
Vec3 | The world position of the text. |
fade (optional) |
boolean | If the text should fade. Defaults to false. |
scale (optional) |
number | The scale of the text. Defaults to 30. |
color (optional) |
Color | The color. Defaults to white. |