New: 36 free tools for Unreal Engine and Unity developers.Try them →

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
  1. Performance at a glance
  2. Profiling
  3. Seeing what the renderer does
  4. Quick render tests
  5. Screenshots
  6. Testing gameplay
  7. Make settings stick
  8. The full searchable list
  9. Summary
  10. FAQ

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

CommandWhat it shows
stat fpsFrames per second and frame time
stat unitFrame, Game, Draw, GPU and RHIT times in milliseconds
stat unitgraphThe same, as a live graph that shows hitches
stat gameGame thread cost: ticking, world, navigation
stat gpuGPU time per render pass
stat noneHides 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

CommandWhat it does
ProfileGPUCaptures one frame and opens the GPU Visualizer (Ctrl+Shift+Comma)
Trace.Start / Trace.StopRecords an Unreal Insights trace
stat startfile / stat stopfileRecords stats to a file
memreport -fullWrites a detailed memory report
ListTexturesLists 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

CommandWhat it does
viewmode wireframeWireframe view (also lit, unlit, lightingonly)
viewmode shadercomplexityShows expensive pixel shaders in red and white
show collisionDraws collision shapes
show boundsDraws object bounds
FreezeRenderingFreezes culling so you can fly around and see what was hidden

Quick render tests

CommandWhat it does
r.ScreenPercentage 50Renders at half resolution. If FPS jumps, you are GPU bound by pixels
t.MaxFPS 60Caps the frame rate (0 = no cap)
r.VSync 0Turns VSync off
scalability 0Sets all quality groups to Low (0–4; scalability auto benchmarks)
r.ForceLOD 2Forces a LOD level to check your LODs (-1 resets)

Screenshots

CommandWhat it does
HighResShot 2Screenshot at twice the window resolution, saved in Saved/Screenshots
HighResShot 3840x2160Screenshot at an exact resolution
r.SetRes 1920x1080wChanges resolution (w = windowed, f = fullscreen)

HighResShot is how you get crisp images for your Steam page without a 4K monitor.

Testing gameplay

CommandWhat it does
slomo 0.5Slows the game down (1 = normal)
pausePauses and unpauses
godMakes the player invulnerable
ghost / fly / walkFly through walls, fly, back to walking
ToggleDebugCameraFree camera to inspect the scene
open MapNameLoads 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 unit first, always: it tells you where the time goes.
  • ProfileGPU, viewmode shadercomplexity and r.ScreenPercentage narrow down GPU problems.
  • HighResShot for store screenshots, slomo and ghost for 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.

  • #unreal engine
  • #debugging
  • #performance
Written by Renish

Indie Unreal Engine developer and founder of Tvashta Studio. Builds the Shopping Simulator Kit plugin in UE5 C++ and the free tools on this site, and writes these guides from that work for Unreal Engine and Unity developers. More about the studio.

Related articles

All articles →