Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

how to load the active scene unity

using UnityEngine.SceneManagement;
using UnityEngine;

public class PlayerMovement : MonoBehaviour
{
	void LoadScene()
    {
    	SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex);
    }
}
 
PREVIOUS NEXT
Tagged: #load #active #scene #unity
ADD COMMENT
Topic
Name
2+8 =