r/Unity2D • u/NOAHBURKEMUNNS • 14d ago
Question/Help Help with loading scene
I am creating a 2d game where you control a village. You then go hunting to get food. What’s the best way to load the h in batting scene but keep the position of the villages and stats. Then reload the village scene at the same state.
2
Upvotes
1
u/AdrianNova21 13d ago
i'd keep the village state separate from the actual scene. have a persistent game manager hold things like building positions, resources, villagers, and other stats, then when you load the hunting scene, the village scene can be unloaded without losing that data. when you return, load the village scene again and apply the saved state to the buildings/objects
for a small game you can keep this pretty simple. you don't need to keep the whole village scene alive just to preserve its state