Answers for "how to load the active scene unity"

C#
3

how to load the active scene unity

using UnityEngine.SceneManagement;
using UnityEngine;

public class PlayerMovement : MonoBehaviour
{
	void LoadScene()
    {
    	SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex);
    }
}
Posted by: Guest on May-24-2020

C# Answers by Framework

Browse Popular Code Answers by Language