sm.debugDraw.flashText

Draws text in world debug draw.

Kind: Function

Environments: Game, Terrain

Game

sm.debugDraw.flashText( text, position, fade, scale, color, time )

Open the full Game reference

Parameters:

Name Type Description
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.
time (optional) number Time to show text. Defaults to 0.5.

Terrain

sm.debugDraw.flashText( text, position, fade, scale, color, time )

Open the full Terrain reference

Parameters:

Name Type Description
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.
time (optional) number Time to show text. Defaults to 0.5.