# 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

``` { .lua .api-signature }
sm.gui.setCharacterDebugText( character, text, clear? )
```

[Open the full Game reference](../Game-Script-Environment/Static-Functions/sm.gui.md#setcharacterdebugtext)

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `character` | [Character](../Game-Script-Environment/Userdata/Character.md) | The character. |
| `text` | string | The debug text. |
| `clear` *(optional)* | boolean | If true the previous text will be overwritten. (Defaults to true) |
