execute_console_command
Run editor-side console commands in Unreal Engine, such as cvars, stat overlays, and r.* toggles. Does not reach a running PIE session; use execute_python for player cheats and pawn movement.
Instructions
Run a console command through the EDITOR (GEditor->Exec against the editor world): cvars, stat overlays, r.* toggles, engine commands. WARNING: it does NOT reach a running PIE session's PlayerController, so player cheats like BugItGo come back handled:false -- to move or cheat a PIE pawn use execute_python against the anchored PIE world. handled is the engine's own "some Exec claimed this string", not proof of an effect: verify with the state (get_cvar, a property read), never with this bool.
Returns: { command: string, handled: bool (an Exec handler claimed the string -- not evidence the effect happened) }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Alias of `command` (same value, same meaning). Accepted because sibling tools spell this parameter differently; prefer `command`. | |
| script | No | Alias of `command` (same value, same meaning). Accepted because sibling tools spell this parameter differently; prefer `command`. | |
| command | No | Console command line, e.g. 'stat fps', 'r.ScreenPercentage 50', 'ShowFlag.Grid 0'. Editor-side only. |