Search Unity

Resources.Load("myScene");

Discussion in 'Editor & General Support' started by samix, Apr 3, 2012.

  1. samix

    samix

    Joined:
    Mar 21, 2012
    Posts:
    3
    Hello,
    I would like to add my scenes to the Resources folder and have a good control of the level loading, depending the action of the player.

    It would be something like this:
    if(playerTurnRight){
    Resources.load(sceneRight);
    Application.LoadLevelAdditiveAsync (sceneRight);
    }

    I tried several ways to do it without success. Any idea?
     
  2. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    You just specify the scene by index or name when using Application.LoadLevel. You can't use Resources.Load for this, nor is there any reason to.

    --Eric