25 Unreal Engine Console Commands Every Developer Should Know
The Unreal Engine console commands you will use every week: stat commands, profiling, view modes, screenshots, scalability and debug cheats.
In this article
Unreal Engine has thousands of console commands and variables. You need about twenty-five of them. These are the ones that save time every week: finding performance problems, checking what the renderer is doing, taking screenshots and testing gameplay.
How to use them: press the backtick key ` while playing (in the editor or a development build), type the command and press Enter. Press the key twice for the bigger console with history and auto-complete.
Performance at a glance
| Command | What it shows |
|---|---|
stat fps | Frames per second and frame time |
stat unit | Frame, Game, Draw, GPU and RHIT times in milliseconds |
stat unitgraph | The same, as a live graph that shows hitches |
stat game | Game thread cost: ticking, world, navigation |
stat gpu | GPU time per render pass |
stat none | Hides all stat displays |
If you learn only one, learn stat unit. The biggest of Game, Draw and GPU is your bottleneck. We explain how to read it in detail in a follow-up guide on finding performance problems.
Profiling
| Command | What it does |
|---|---|
ProfileGPU | Captures one frame and opens the GPU Visualizer (Ctrl+Shift+Comma) |
Trace.Start / Trace.Stop | Records an Unreal Insights trace |
stat startfile / stat stopfile | Records stats to a file |
memreport -full | Writes a detailed memory report |
ListTextures | Lists every loaded texture with size and format |
ListTextures is great for finding the uncompressed 4K texture that somehow ended up on a pebble.
Seeing what the renderer does
| Command | What it does |
|---|---|
viewmode wireframe | Wireframe view (also lit, unlit, lightingonly) |
viewmode shadercomplexity | Shows expensive pixel shaders in red and white |
show collision | Draws collision shapes |
show bounds | Draws object bounds |
FreezeRendering | Freezes culling so you can fly around and see what was hidden |
Quick render tests
| Command | What it does |
|---|---|
r.ScreenPercentage 50 | Renders at half resolution. If FPS jumps, you are GPU bound by pixels |
t.MaxFPS 60 | Caps the frame rate (0 = no cap) |
r.VSync 0 | Turns VSync off |
scalability 0 | Sets all quality groups to Low (0–4; scalability auto benchmarks) |
r.ForceLOD 2 | Forces a LOD level to check your LODs (-1 resets) |
Screenshots
| Command | What it does |
|---|---|
HighResShot 2 | Screenshot at twice the window resolution, saved in Saved/Screenshots |
HighResShot 3840x2160 | Screenshot at an exact resolution |
r.SetRes 1920x1080w | Changes resolution (w = windowed, f = fullscreen) |
HighResShot is how you get crisp images for your Steam page without a 4K monitor.
Testing gameplay
| Command | What it does |
|---|---|
slomo 0.5 | Slows the game down (1 = normal) |
pause | Pauses and unpauses |
god | Makes the player invulnerable |
ghost / fly / walk | Fly through walls, fly, back to walking |
ToggleDebugCamera | Free camera to inspect the scene |
open MapName | Loads a level |
slomo, god, ghost, fly and ToggleDebugCamera are cheat commands. They work in Play In Editor and development builds, not in Shipping builds.
Make settings stick
Console variables reset when you restart. To keep one:
; Config/DefaultEngine.ini [SystemSettings] r.ScreenPercentage=75 t.MaxFPS=120
From Blueprint, use the Execute Console Command node. In C++, GetWorld()->Exec(GetWorld(), TEXT("stat unit")); runs a command.
The full searchable list
We keep a searchable cheat sheet of nearly 100 commands and CVars, grouped by task and with the Unity equivalent for each one, in the Unreal Engine Console Commands tool. Tick the "ini" box next to any numeric CVar and it writes the DefaultEngine.ini lines for you.
Summary
stat unitfirst, always: it tells you where the time goes.ProfileGPU,viewmode shadercomplexityandr.ScreenPercentagenarrow down GPU problems.HighResShotfor store screenshots,slomoandghostfor testing.- Put CVars you always want in DefaultEngine.ini.
Frequently asked questions
How do I open the console in Unreal Engine?
Press the backtick key (`), which is ~ on some keyboards, while playing in the editor or a development build. Press it twice for the large console with history. The key can be changed in Project Settings > Input > Console Keys.
How do I show FPS in Unreal Engine?
Type stat fps. Even better is stat unit, which also shows Game, Draw and GPU times so you can see what limits your frame rate.
Why do god, ghost and slomo not work in my packaged game?
They are cheat commands handled by the Cheat Manager, which exists in Play In Editor and development builds but not in Shipping builds.
How do I make a console variable permanent?
Put it under [SystemSettings] in Config/DefaultEngine.ini, for example r.ScreenPercentage=75, or set it from Blueprint with the Execute Console Command node.