(Solved) "Level" (-1) coundn't load after I put the scene on the build setting

Hi, I’m currently using unity ver 4.6. I already put the scene in the build setting, when I press play still can’t load to the next scene?
I need help.

The problem is probably in your LevelManager script, could you please post your code?

Here my code:

using UnityEngine;
using System.Collections;

public class LevelManager : MonoBehaviour {

public void LoadLevel(string name) {
Debug.Log("Level load request for: " + name);
Application.LoadLevel(name);
}
public void Quit_level() {
Debug.Log ("Quit! ");
}

}

Okay I was wrong, the script is fine. The problem seems to be that there is no name passed to the LoadLevel method (you can see it in the debug log "Level load request for: "). Make sure your buttons’ OnClick() method actually passes a string to the level manager (and that that string is one of the scenes’ names).

Oh, I miss something in the previous video!!
Thank you very much !!!
Btw do I need to delete this toipic?

No problem :wink: