Answers for "no overload for 'useItemOnSceneLoad' matches delegate 'UnityAction<Scene, LoadSceneMode>'"

C#
0

no overload for 'useItemOnSceneLoad' matches delegate 'UnityAction<Scene, LoadSceneMode>'

//https://answers.unity.com/questions/1279397/onscenewasloaded-deprecated-cannot-find-work-aroun.html
//The two problems you have is sceneLoaded is a delegate with two parameters, 
//where you provide none with your myDelegateEvent() method. you need to extend your myDelegateEvent 
//to match the parameters like:

 void myDelegate(Scene scene, LoadSceneMode mode){  }

//then use:
SceneManager.sceneLoaded += myDelegeteEvent;
//to add an event to the delegete
Posted by: Guest on February-28-2020

Code answers related to "no overload for 'useItemOnSceneLoad' matches delegate 'UnityAction<Scene, LoadSceneMode>'"

C# Answers by Framework

Browse Popular Code Answers by Language