unity embed assets into scene code example
Example 1: load scene unity
using UnityEngine.SceneManagement
public class LoadScene : MonoBehavior
{
public string sceneToLoad = "Level2";
public void Start()
{
SceneManager.LoadScene(sceneToLoad);
}
}
Example 2: load scene unity
using UnityEngine.SceneManagement;
void Start()
{
SceneManager.LoadScene(/*the Scene number*/);
}