Is it possible to keep the scene as it is while I load another scene?
My game has one scene where a character can walk on a map (MapScene) and trigger various events (that modify said map). Some of these events trigger a new scene: BattleScene. I want the game to bring the player back to the map once the battle has ended.
The problem is that if I use SceneManager.LoadScene("MapScene"), the map will be completely reset. I also tried to use the LoadSceneMode.Additive parameter when I load "BattleScene" but this fails because both the scenes have an "EventSystem" Object. I also tried the method found there: https://forum.unity.com/threads/how-can-i-open-previous-scene.652507/, but it didn't help at all (unless I misunderstood it's really just SceneManager.LoadScene with extra steps).
Keeping the exact state of the map in static parameters would be very tedious (just the fog of war for example would require the coordinates of every revealed places).
Is there a way to do what I want? It seems like a basic thing.
Your answer
Follow this Question
Related Questions
Help- How to use "DontDestroyOnLoad (gameObject);" 1 Answer
Loading scene problems 0 Answers
LoadScene loads all textures into memory? 0 Answers
LoadScene interrupting my script 1 Answer
example of new way to load levels 1 Answer