Haidy Kassem
8
Q:

scene manager unity

using UnityEngine.SceneManagement;

int buildIndex = 0;
//Load the scene with a build index
SceneManager.LoadScene(buildIndex);
11
using UnityEngine;
using UnityEngine.SceneManagement;

public class ExampleScript: MonoBehaviour
{
     public string Scene; // Put int the Name of the scene you want to load :)
     // Active when the game/app starts :)
    void Start()
    {          
    SceneManager.LoadScene(Scene);

    }
}
0
        SceneManager.LoadScene(scenename);
0
using UnityEngine;
using UnityEngine.GameManagement;

public class NextLevelLoader : MonoBehaviour

public void LoadScene () 
{

	SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex);

}
-1

New to Communities?

Join the community