Z
Z
Zefirot2021-07-09 21:06:52
Unity
Zefirot, 2021-07-09 21:06:52

Is it possible to change the scene during the game?

I thought how to create rooms for my new game, I thought to store the data in txt and then, when loading the scene, put everything in its place according to the types and coordinates that are in the txt dock ...

but some difficulties arose, especially setting up the scene with navmesh, sprite shapers , in general, it will be difficult to drive this into txt ...

Therefore, I was advised to make scenes with a full set of everything, that is, place all the prefabs, stretch the sprite shapers as needed, make a grid for the navmesh and then save this scene directly and load it when needed ...

The question is, will it be possible to somehow save some actions in these scenes as the game progresses, for example, this prefab was destroyed or a new one was created during the game, and during the next loading of the scene it will all be so with changes?

How to build this kind of structures?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
i__egor, 2021-07-10
@i__egor

Why are scenes needed for a game? One scene for one game and that's it. All rooms are stored in prefabs. You add and remove them from the scene. In txt, you don't need to store anything other than text (eg localization). There is serialization (eg binary) - so save everything to disk

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question