Search Unity

Loading Levels

Discussion in 'Editor & General Support' started by Velketor, Nov 26, 2007.

  1. Velketor

    Velketor

    Joined:
    Sep 15, 2007
    Posts:
    110
    Hello,

    I am still relatively new to Unity and I was wondering if there is a way for me to "load" a level. I want my character to walk from one room to the next, but each time I would like for a new scene to load.

    I am confused on how to start achieving this and any information would greatly be appreciated. Thank you!

    --Velk
     
  2. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
  3. shaun

    shaun

    Joined:
    Mar 23, 2007
    Posts:
    728
    When you use Application.LoadLevel(), everything that exists in your game object hierarchy will be destroyed. If you need to keep things around, use DontDestroyOnLoad in the game objects start or awake function.