- Home /
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?
Answer by Dreamora · Aug 08, 2011 at 03:19 AM
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
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Can a script be loaded to a next scene? 3 Answers
Help with loading a scene,Help changing scenes (C~ script) 1 Answer