my game is working fine but this error won’t stop
it’s my code
public string startmenu;
public void startmenuButton(){
Application.LoadLevel (startmenu);
}
I used Application.LoadLevel (startmenu);
should I ignore it or what?
my game is working fine but this error won’t stop
it’s my code
public string startmenu;
public void startmenuButton(){
Application.LoadLevel (startmenu);
}
I used Application.LoadLevel (startmenu);
should I ignore it or what?
This is a very basic error.
All you have to do is add the following to the using statements…
using UnityEngine.SceneManagement;
and then to call the level change function simply do…
SceneManager.LoadScene("scenenameinthebuildsettings");
Use https://docs.unity3d.com/ScriptReference/SceneManagement.SceneManager.html for referencing.