How does multiple level in one scene works?

I have read about it a lot where you can make multiple levels in one scene. I want to know about it in detail but there is nothing on the internet where it is explained in detail like how to make different levels in the same scene, how to change levels. Can someone please explain or provide a link where I can find the solution?

I find this to be a pretty vague question. That’s probably why you can’t find many answers to it.

A level is whatever you want it to be. A bunch of prefabs with a bunch of components attached to them, a camera and maybe some lights.

All of these objects you traditionally set up in separate scene files to make separate levels and load a new scene when you want to load a new level.

If you want to load new levels without changing scene, you have to for example put all the stuff that makes up one level into a prefab and load that prefab into your scene when you need to.

Or you could create some kind of a configuration system (a GameObject or a ScriptableObject with a bunch of prefab references) to load in a bunch of prefabs that make up one level.

When using scenes, the previus scene gets destroyed when you go to the next one. When not using scenes, you probably have to manually do more “resetting” and deleting things (delete the previous level’s prefabs before loading in the next level)