sm.gui.setCharacterDebugText

Set a text for the character that will be displayed above its head. Only has effect in dev build.

Kind: Function

Environments: Game

Game

sm.gui.setCharacterDebugText( character, text, clear )

Open the full Game reference

Parameters:

Name Type Description
character Character The character.
text string The debug text.
clear (optional) boolean If true the previous text will be overwritten. (Defaults to true)