Spawn Actor In Editor After PIE Closes

Good afternoon everyone,

Was just curious if anyone knew how I could spawn an actor in the editor once PIE closes. I have tried binding functions to FEditorDelegates::EndPIE, but unfortunately it seems that the delegate is called while the game mode is still active. I’ve considered a few things such as using a singleton FRunnable to detect game mode changes and to spawn the actor when it switches from the game mode, but I’m pretty sure there is a hard assert in IsInGameThread() to prevent me from doing this.

If anyone knows of any ways to do this I’d love some help. Thanks!