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

Unreal Engine Console Commands & CVars

Searchable list of the Unreal console commands and CVars you actually use for profiling, rendering and debugging, with Unity equivalents.

  • ✓ Free, no sign-up
  • ✓ Made for Unreal Engine
  • ✓ Runs in your browser

97 commands

Performance stats

stat fps

Show frames per second and frame time.

Unity: Game view Stats window

stat unit

Show Frame, Game (CPU game thread), Draw (render thread), GPU and RHIT times. The biggest number is your bottleneck.

Unity: Profiler: CPU main thread vs render thread vs GPU

stat unitgraph

Same timings as stat unit, drawn as a live graph to spot hitches.

Unity: Profiler timeline

stat game

Game thread breakdown: Tick time, world tick, navigation and more.

Unity: Profiler: Scripts / BehaviourUpdate

stat gpu

GPU time per render pass (shadows, base pass, Lumen, post processing…).

Unity: Profiler: GPU Usage module

stat scenerendering

Draw calls, mesh draw calls and render thread costs.

Unity: Frame Debugger / Stats: Batches

stat rhi

Triangles drawn, draw primitive calls and render target memory.

Unity: Stats: Tris, Batches

stat initviews

Visibility culling cost and how many primitives were culled.

stat anim

Animation and skeletal mesh update costs.

Unity: Profiler: Animation

stat physics

Physics simulation timings.

Unity: Profiler: Physics module

stat particles

Cascade particle counts and costs (legacy systems).

stat niagara

Niagara system counts and simulation costs.

Unity: Profiler: VFX

stat ai

AI and behavior tree costs.

stat slate

UI (Slate and UMG) costs.

Unity: Profiler: UI module

stat audio

Active sounds and audio thread costs.

Unity: Profiler: Audio module

stat streaming

Texture and mesh streaming pool usage.

stat levels

Streaming levels and their load state.

stat net

Network traffic, packets and replicated actors.

Unity: Network Profiler

stat none

Hide all stat displays.

Profiling

ProfileGPU

Capture one frame and open the GPU Visualizer with the cost of every pass. Shortcut: Ctrl+Shift+Comma.

Unity: Frame Debugger + GPU profiler

Trace.Start

Start an Unreal Insights trace (default channels). Add channels like Trace.Start default,memory.

Unity: Profiler: Record

Trace.Stop

Stop the Unreal Insights trace. Open the .utrace file in Unreal Insights.

Trace.Bookmark Name

Add a named marker to the current trace, e.g. before a boss fight.

stat startfile

Start recording stats to a file (Saved/Profiling).

stat stopfile

Stop recording stats to a file.

DumpGPU

Dump all GPU resources of one frame for detailed inspection.

r.RHISetGPUCaptureOptions 1

Add more detail (draw events) to GPU captures.

Rendering

r.ScreenPercentage 50

Render at a percentage of the output resolution. Quick test for GPU-bound scenes.

Unity: URP Render Scale / Dynamic Resolution

t.MaxFPS 60

Cap the frame rate. 0 removes the cap.

Unity: Application.targetFrameRate = 60

r.VSync 0

Turn vertical sync off (1 = on).

Unity: QualitySettings.vSyncCount = 0

r.AntiAliasingMethod 4

Anti-aliasing: 0 none, 1 FXAA, 2 TAA, 3 MSAA (forward renderer), 4 TSR.

Unity: Camera / URP Anti-aliasing setting

r.DynamicGlobalIlluminationMethod 1

Global illumination: 0 none, 1 Lumen, 2 screen space (SSGI).

Unity: HDRP / URP global illumination settings

r.ReflectionMethod 1

Reflections: 0 none, 1 Lumen, 2 screen space reflections.

r.Nanite 0

Turn Nanite rendering off at runtime to compare performance (1 = on).

r.Shadow.Virtual.Enable 0

Switch Virtual Shadow Maps off and use regular shadow maps.

r.MotionBlurQuality 0

Turn motion blur off.

r.DepthOfFieldQuality 0

Turn depth of field off.

r.BloomQuality 0

Turn bloom off.

r.ViewDistanceScale 0.5

Scale how far objects are drawn (cull distances).

Unity: Camera far clip / LOD Bias

r.ForceLOD 2

Force every static mesh to one LOD to check your LODs. -1 resets.

Unity: QualitySettings.maximumLODLevel

r.Streaming.PoolSize 2000

Texture streaming pool size in MB. Raise it if you see "texture streaming pool over budget".

r.Tonemapper.Sharpen 0.5

Add sharpening in the tonemapper, useful with TAA or TSR.

FreezeRendering

Freeze visibility culling so you can fly around and see what was culled. Run again to unfreeze.

View modes & show flags

viewmode wireframe

Wireframe view. Others: lit, unlit, lightingonly, detaillighting.

Unity: Scene view draw mode: Wireframe

viewmode shadercomplexity

Show how expensive the pixel shaders are (green cheap, red and white expensive).

Unity: Scene view: Overdraw

viewmode lightcomplexity

Show how many dynamic lights affect each pixel.

show collision

Draw collision shapes. Run again to hide.

Unity: Physics Debugger

show bounds

Draw the bounds of every primitive.

show navigation

Draw the navigation mesh.

Unity: AI Navigation overlay

show postprocessing

Toggle all post processing to measure its cost.

r.Nanite.Visualize Overview

Nanite debug views (Overview, Triangles, Clusters, Overdraw…).

ToggleDebugCameraCheat

Detach a free camera to inspect the scene while the game is paused in place.

Unity: Scene view during Play mode

Scalability

scalability 0

Set every scalability group at once: 0 Low, 1 Medium, 2 High, 3 Epic, 4 Cinematic. "scalability auto" benchmarks your PC.

Unity: QualitySettings.SetQualityLevel

sg.ViewDistanceQuality 2

View distance quality (0 to 4).

sg.ShadowQuality 2

Shadow quality (0 to 4).

Unity: QualitySettings.shadows

sg.GlobalIlluminationQuality 2

Global illumination quality (0 to 4).

sg.ReflectionQuality 2

Reflection quality (0 to 4).

sg.TextureQuality 2

Texture quality (0 to 4).

Unity: QualitySettings.globalTextureMipmapLimit

sg.EffectsQuality 2

Effects quality (0 to 4).

sg.PostProcessQuality 2

Post process quality (0 to 4).

sg.FoliageQuality 2

Foliage density and distance (0 to 4).

sg.AntiAliasingQuality 2

Anti-aliasing quality (0 to 4).

Screenshots & window

HighResShot 2

Screenshot at 2x the window resolution (or HighResShot 3840x2160). Saved to Saved/Screenshots.

Unity: ScreenCapture.CaptureScreenshot(path, 2)

Shot

Normal screenshot at window resolution.

r.SetRes 1920x1080w

Change resolution. w = windowed, f = fullscreen, wf = windowed fullscreen.

Unity: Screen.SetResolution(1920, 1080, FullScreenMode.Windowed)

DisableAllScreenMessages

Hide on-screen debug messages (EnableAllScreenMessages brings them back).

Gameplay & cheats

slomo 0.5Cheat

Slow down or speed up the game. 1 is normal speed.

Unity: Time.timeScale = 0.5f

pause

Pause or unpause the game.

Unity: Time.timeScale = 0

godCheat

Make the player invulnerable.

flyCheat

Let the player fly (walk turns it off).

ghostCheat

Fly and pass through walls (walk turns it off).

teleportCheat

Teleport the player to where the camera is looking.

summon /Game/BP_Enemy.BP_Enemy_CCheat

Spawn an Actor of a class in front of the player.

Unity: Instantiate(prefab)

killpawnsCheat

Destroy all AI-controlled pawns.

ce EventName

Call a custom event or function on the Level Blueprint (useful for debug shortcuts).

ke * EventName

Call a custom event or function on every Actor that has it (ke ClassName EventName for one class).

open MapName

Load a level by name.

Unity: SceneManager.LoadScene("MapName")

RestartLevel

Reload the current level.

showdebug

Show debug info for the current view target. Try showdebug camera, showdebug animation, showdebug input.

DisplayAll Character Health

Show a property value of every Actor of a class on screen, live.

Memory

stat memory

Memory used by major systems.

Unity: Profiler: Memory module

memreport -full

Write a full memory report to Saved/Profiling/MemReports.

Unity: Memory Profiler snapshot

obj list class=Texture2D

List loaded objects of a class with their memory size.

ListTextures

List every loaded texture with size, format and memory. Great for finding uncompressed or oversized textures.

obj gc

Force a garbage collection.

Unity: Resources.UnloadUnusedAssets() + GC.Collect()

stat llm

Low Level Memory tracker summary (launch with -llm for full data; stat llmfull for detail).

Networking

NetEmulation.PktLag 150

Add 150 ms of lag to test multiplayer under real conditions.

Unity: Network Simulator (Multiplayer Tools)

NetEmulation.PktLoss 5

Drop 5% of packets.

p.NetShowCorrections 1

Draw character movement corrections from the server.

stat net

Bandwidth, packet counts and replicated actors.

Navigation & AI

RebuildNavigation

Rebuild the navigation mesh.

Unity: NavMeshSurface.BuildNavMesh()

EnableGDT

Open the Gameplay Debugger (also the apostrophe key) to inspect AI, behavior trees, perception and EQS.

show navigation

Draw the navigation mesh in game.

Utility

help

Open a searchable list of every console command and variable in your engine version.

DumpConsoleCommands

Print all console commands to the Output Log.

r.ScreenPercentage ?

Add ? after any variable to see its help text and current value.

exit

Quit the game (or stop Play In Editor).

Unity: Application.Quit()

How to use console commands

  • Open the console with the ` key while playing (in the editor or a development build). Press it twice for the full console with history and auto-complete.
  • Commands do something once (stat unit, HighResShot 2). Console variables (CVars) hold a setting (r.ScreenPercentage 75). Type a CVar name with ? to see its value and help.
  • From Blueprint: use the Execute Console Command node. From C++: GetWorld()->Exec(GetWorld(), TEXT("stat unit")) or IConsoleManager to read and set CVars.
  • Permanently: put CVars under [SystemSettings] in DefaultEngine.ini, or per device profile in DefaultDeviceProfiles.ini.
  • At launch: add -ExecCmds="stat unit, t.MaxFPS 60" to the command line of a packaged development build.

Finding a performance problem in 3 steps

  1. Run stat unit. If Game is highest, the problem is gameplay code, ticking, AI or physics. If Draw is highest, too many objects or draw calls. If GPU is highest, it is shading, lighting, shadows or resolution.
  2. GPU bound? Try r.ScreenPercentage 50. If the frame rate jumps, you are limited by pixels (post processing, Lumen, overdraw); then use ProfileGPU or stat gpu to find the pass.
  3. CPU bound? Record a trace with Trace.Start and Trace.Stop and open it in Unreal Insights to see exactly which functions take the time.

Always profile a packaged development build or Standalone game: the editor adds its own overhead.

FAQ

How do I open the console in Unreal Engine?

Press the ` key (backtick, or ~ on some keyboards) while playing. Press it twice for the larger console with history. You can change the key in Project Settings > Input > Console Keys. The console is disabled in Shipping builds.

How do I show FPS in Unreal Engine?

Type stat fps in the console. stat unit is even more useful: it shows Game, Draw and GPU times so you can see which one limits your frame rate.

How do I make a console variable permanent?

Add it under [SystemSettings] in Config/DefaultEngine.ini (for example r.ScreenPercentage=75), or set it in Blueprint with the Execute Console Command node. The builder above writes the ini lines for you.

Why do god, fly or slomo not work?

They are cheat commands handled by the Cheat Manager, which only exists in Play In Editor and development builds. They do nothing in Shipping builds unless you enable cheats yourself.

Guides for this tool

More free tools