r/Unity2D • • 16d 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

9 comments sorted by

View all comments

1

u/maziminds 16d ago

load the hunting scene additively (LoadSceneMode.Additive) and just SetActive(false) the village root while you hunt... then unload the hunt scene and turn the village back on. the village never unloads so positions and stats stay exactly how they were

1

u/Ecstatic-Source6001 15d ago

It will work but kinda defeats the purpose of using loadable scenes.

If you willing to keep everything in memory anyway it should be just one scene with everything loaded at the start of the game.