How to repair this?
"Onlevelwasloaded was found on webcam behavior this message has been deprecated and will be removed in a later version of unity add a delegate to scenemanager .scene loaded instead to get notifications after scene loading has completed"?? Please help me
Comment
Answer by tkamruzzaman · Dec 06, 2016 at 07:43 AM
Instead of using Onlevelwasloaded()
, add a delegate to SceneManager.sceneLoaded
to get notifications after scene loading has completed.
using UnityEngine.SceneManagement;
void OnEnable() {
SceneManager.sceneLoaded += OnSceneLoaded;
}
void OnDisable() {
SceneManager.sceneLoaded -= OnSceneLoaded;
}
private void OnSceneLoaded(Scene scene, LoadSceneMode mode) {
//do stuff
}
Your answer
Follow this Question
Related Questions
Need enemy to stop at spotlight flash 1 Answer
Need advice on a boy... can anyone help? 0 Answers
Unity Infinity Importin 0 Answers
Switch to another camera position? 1 Answer
How can I make my character turn back and continue running? 0 Answers