using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class scenechange : MonoBehaviour
{
public void sceenchanger(){
SceneManager.LoadScene(“1”);
}
}
It displays message of not loaded and any idea why is that so ?
Remove the " " around the number 1 and it should work, if you have put your scenes into the build setting.
Nina
4
Hi @Vaibhav_Kumar,
How are you getting on with this? Did @David_Lamonaca’s answer help?
See also:
system
Closed
7
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.