Keeping Thread between levels
In the BeguinPlay method of my GameMode i create a thread which connect to a server. In this server I store information about the different users.
Now i need to change level but i want to keep those information and the thread running.
Which function do you recommend me.
openLevel() but it destory the gamemode ServerTravel() but it also destroy the gameMode PrepareMapChange/CommitMapChange it keep the gameMode but all the meshes and actors of the previous level are still alive.
I could store the data in the GameState or something and don't kill the thread when the gameMode is killed but the BeguinPlay() method will be called an other time.
Keep it in your GameInstance - that is place for all your global data.
answered Sep 23 '16 at 07:43 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here