using UnityEngine; using UnityEngine.SceneManagement; public class Example : MonoBehaviour { void Start() { SceneManager.LoadScene("sceneName"); SceneManager.sceneLoaded += CallBack; } public void CallBack(Scene scene, LoadSceneMode sceneType) { Debug.Log(scene.name + "is load complete!"); } }
原文:https://www.cnblogs.com/Transmuter/p/11097493.html