How to check if game is running
I'm creating an editor plugin, and depending on whether the game is running or not I need to get either pass either an object from a level (if the game is running), or use the editor world itself.
For that reason, I need the ability to know whether we are running the game or are still in the editor.
Preprocessor directives "#if WITH_EDITOR" and the likes do not work because they tell about the build configuration, not whether we are actually in "edit-mode" or playing the game. Any advice?
asked Jan 18 '19 at 03:01 PM in C++ Programming
Try to get current world type from UWorld if possible.
Lot of other getter is there (like isPlayInEditor), check the doc
answered Jan 22 '19 at 12:28 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here