I am working on a multiplayer game. I am planning to have some variables in the player controller and some on game mode. I read about seamless travel and it seems like a perfect way to preserve the data from lobby to the level.
But the data in the player controller is reset when the new level is loaded.
I have set the seamless travel to true in the game mode.
The two levels has different game modes but the same playercontrollers.
According to the log, seamless travel is successful and NotifyLoadedWorld has been called on player controller:
LogWorld: Sending NotifyLoadedWorld for LP: LocalPlayer_0 PC: PalyerController3Bp_C_0
LogNet: Verbose: NotifyLoadedWorld Begin
LogNet: Verbose: NotifyLoadedWorld End
LogWorld: ----SeamlessTravel finished in 0.16 seconds ------
I tried setting a different type of player controller as well. In that case, only the new controller is present in the level.
Is there anyway I can preserve data on game mode and controllers?
I only know a bit about networking and help will be appreciated