Debug text

    You can print debug text at runtime with DebugText. For example, you can use this to display a message when a problem occurs.

    Note

    Debug text is automatically disabled when you build the game in release mode.

    Where and are the pixel coordinates to display the text at.

    The debug message is displayed when you run the game.

    To hide debug text, use:

    The following script checks that the texture is loaded. If it isn't loaded, the game displays the debug text "MyTexture not loaded".

    See also