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!");
}
}
Unity场景加载完成回调
点赞
收藏