Question : how to load the active scene unity
Answered by : attractive-alligator-utg79j6z7v2t
using UnityEngine.SceneManagement;
using UnityEngine;
public class PlayerMovement : MonoBehaviour
{ void LoadScene() { SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex); }
}
Source : | Last Update : Sun, 31 May 20