Search Unity

Scene Management, Folders and Scenes Organization

Discussion in 'Editor & General Support' started by RemDust, May 22, 2018.

  1. RemDust

    RemDust

    Joined:
    Aug 28, 2015
    Posts:
    432
    Hi guys !

    I tried to play around with the SceneManagement and I havent even able to organize my scene selection properly. I don't think this is unusual to be able to select a level or multiple levels to play but I just can't get it right. :(

    What I'm trying to do is to organize my levels in folders, like :
    - underground levels
    - winter levels
    - whatever

    Then I'll make the player able to chose whatever levels he wants to play :)
    Right now I can't tell my Scene Manager "load all the scenes in WINTER FOLDER" to populate a list and iterate through it :/

    Any idea on how I could achieve that ?
    Thanks ! ;)
     
  2. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    Rather than going through folders of scene files, I'd just create some lists of scene name strings. When I add a new scene, just remember to add its name to the appropriate list. When the player chooses one of the scenes, you just load the scene with the name that matches that string
     
  3. RemDust

    RemDust

    Joined:
    Aug 28, 2015
    Posts:
    432
    It seems so easy and solid that I just feel so dumb right now ! xD
    Thanks ;)