Z
Z
Zimaell2020-12-11 15:42:46
Unity
Zimaell, 2020-12-11 15:42:46

How to organize the level map?

I have a game like 3 in a row, of course, for each room you need a "map" where what should be (which prefab, what properties it has).
How to organize the level map?
I think there should be a separate folder in which there will be a list of files (level1, level2....)
What should be the structure of these files? Do not create a separate class for each level ...
If this file contains an array, then how to request it ...
In one game I saw there is a level1.map file (I just couldn’t open it), that is, you can somehow set such files and a level map...
How to do it right?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
PanLipton, 2020-12-11
@PanLipton

This can be done through SceneMenedger and LoadScene.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question