Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Loadlevel problem

Discussion in '2D' started by ivanm43, Jun 28, 2015.

  1. ivanm43

    ivanm43

    Joined:
    Mar 30, 2015
    Posts:
    19
    Hello guys,
    I'd like to load new level by touching on a sprite (picture).
    I googled and tried everything but still not working so I decided to ask for a help here.

    Thank you,
    Kind regards.
     
  2. adilali1122

    adilali1122

    Joined:
    Jun 27, 2015
    Posts:
    3
    In Player Build Settings Add your Scenes. And Try

    • Application.LoadLevel(LevelNo) //int LevelNo
     
    Last edited: Jun 29, 2015
    ivanm43 likes this.
  3. pappu33

    pappu33

    Joined:
    Apr 8, 2015
    Posts:
    14
    u gotta add the scene u want to load in build settings.
     
    ivanm43 likes this.
  4. ivanm43

    ivanm43

    Joined:
    Mar 30, 2015
    Posts:
    19
    I did it, code is very simple haha.
    Thank you both :D
     
    Last edited: Jun 28, 2015