Answers for "how to open a loaded scene in unity"

C#
6

how to switch scenes unity

SceneManager.LoadScene("MyScene");
Posted by: Guest on December-09-2019
5

scene manager unity

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);

    }
}
Posted by: Guest on September-28-2020

C# Answers by Framework

Browse Popular Code Answers by Language