V
V
Vladimir2021-10-27 18:01:49
Unity
Vladimir, 2021-10-27 18:01:49

Is there any way to tag scenes?

Good day!
Preface : I'm new to Unity and GameDev in general, making a simple game where the player will go through levels one by one. There will be two modes, Arcade and Campaign.
Task : It is necessary to organize scene switching.
Solutions that I found on the Internet : Switching through " buildIndex + 1" and " LoadScene("level_name");".
Through LoadScene, it seems to me that it will not be very good in terms of automatically searching for the next scene.
Using buildIndex is also not convenient, since the next scene may turn out to be a scene from the wrong mode, for example, or some kind of menu in general (I mean that I would not really like to suffer in Build Settings when there are 150+ scenes for example).

Option similar tobuildIndexI would be very satisfied if I indicated that we only take scenes with such a tag. But there are two problems and this is the lack of tags on the scenes and buildIndex + 1may not exist, and the scene will already be on buildIndex + 13, but guessing is such a thing.

What can you advise for managing scenes when there are a lot of them and they belong to different groups?

Thanks in advance for your answers and time!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
freeExec, 2021-10-27
@freeExec

You have some kind of problem out of nowhere. Well, name your scenes Arcade_Level2_Zone5_Block8
. But in general, it's strange to be tied only to the presence of a scene. You still need to keep a separate data set about the levels, where, among other things, there will be the name of the scene.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question