Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

Unity SceneLoad by Name in Inspector

using UnityEngine;
using UnityEngine.SceneManagement;
public class testing : MonoBehaviour
{
    //type scene name in Inspector
	public string sceneToLoad ;

    public void Update()
    {
        SceneManager.LoadScene(sceneToLoad);
    }
}
 
PREVIOUS NEXT
Tagged: #Unity #SceneLoad #Name #Inspector
ADD COMMENT
Topic
Name
7+2 =