Hi everyone ,
i want to load a unity game with another software written in C# , my challenge here is that i cant actually find out when the scene is completely loaded in Unity game , is there any way that i can detect that ?!
thanks for you help and time.
Add a delegate that subscribes to the SceneManager.sceneLoaded event:
void Start() {
SceneManager.sceneLoaded += OnSceneLoaded;
}
void OnSceneLoaded() {
//do stuff
}
Here’s the script that will always execute when a scene is completely loaded
void OnLevelWasLoaded() {
// do stuff
}