Adding scenes to build settings at runtime

So imagine a game where you have a level editor allowing you to create new levels. There’s a scene that shows all of the levels in a grid view that currently exist within a folder containing all levels.

How would I be able to add new levels / scenes to the game at runtime? So the game would find each scene that exists in the folder and add it to the game’s build settings. This way I can go through the list of scenes and pick the one I want to load, like a level selector.

Apparently this can’t be done? Yet I’ve seen people with level editors and the ability to load levels…

There is no build settings after build. I guess it is clear why.

But you can create an “empty” or “prototype” scene which is capable of loading up whatever you put in there dynamically. Although you will have to code quite a bit to achieve a dynamic system like that. The important thing is that you have to code it since you know what are your requirements.

1 Like