using UnityEngine; using UnityEngine.SceneManagement; public class testing : MonoBehaviour { //type scene name in Inspector public string sceneToLoad ; public void Update() { SceneManager.LoadScene(sceneToLoad); } }