Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

Unity Scene Load by BuildIndex

using UnityEngine;
using UnityEngine.SceneManagement;
public class testing : MonoBehaviour
{
    private void Update()
    {
    //Name of index scene to load here
        int buildIndex = 1;
        //Load the scene with a build index
        SceneManager.LoadScene(buildIndex);
    }
}
 
PREVIOUS NEXT
Tagged: #Unity #Scene #Load #BuildIndex
ADD COMMENT
Topic
Name
9+9 =