Finding scene names from a folder

I have a folder aptly named 'levels which contains all my scenes. What I would like to do is delve into the folder, via code, and grab the name of all the scenes inside so I can build a level manifest which contains a reference to all of the levels contained inside the folder.

Is this possible? If it is, how would I do such a thing?

sorry i've made a mistake, i've fixed it in my last reply, use transform position instead of Translate.

1 Answer

1

yupp thats possible and relatively easy.
You would use System.IO.Directory and use the path to the folder (Application.dataPath+“/…”) and search for scene files.

created a similar functionality to auto build streaming scenes and the player itself in the past

Thank you for all the help, it seems to work well.