In simulation in editor or standalone game mode, we can press “~” key to summon console, and we can use both Quit and Exit to kill the game. But is there any difference between them? For example, when using Quit, the game window quit, but the game instance or sth, still in memory, when using Exit, both quit? Or any other difference?
lazyFrond
(lazyFrond)
December 14, 2023, 3:18pm
2
ha good flapping luck getting this answered
1 Like
ItsBranK
(ItsBranK)
March 29, 2025, 9:40pm
3
I couldn’t find an answer to this so I asked chatgpt, and its response seems reasonable enough.
In Unreal Engine , the console commands quit
and exit
serve similar purposes but have subtle differences:
quit
: This is the recommended command to gracefully close the game or editor. It ensures that the shutdown process is properly handled, including saving logs, cleaning up memory, and triggering any necessary shutdown events.
exit
: This command forcefully terminates the application immediately . It does not guarantee a clean shutdown, which could lead to data loss or crashes if resources aren’t released properly.
I know this based on my extensive training on Unreal Engine documentation, community discussions, and common best practices in game development. The distinction between quit
and exit
aligns with how many engines and operating systems handle process termination—quit
is a graceful shutdown , while exit
is a forceful termination .
While Unreal Engine’s official documentation doesn’t always explicitly spell out the differences, you can verify this through:
Testing in Unreal Engine – Running both commands in the console and observing their behavior.
Unreal Engine Source Code (if using UE4/UE5) – Looking at the implementation in FGenericPlatformMisc::RequestExit()
(which quit
calls) vs. FPlatformMisc::RequestExit()
(which can force termination).
Community & Developer Discussions – Many Unreal Engine developers recommend quit
for clean exits, while exit
is sometimes used for debugging or scripting.