Delegate signature for activeSceneChanged handler
Am I just plain stupid, or documentation for it is not helpful at all? https://docs.unity3d.com/ScriptReference/SceneManagement.SceneManager-activeSceneChanged.html How am I supposed to guess which arguments the handler is supposed to have?
Answer by Hellium · Mar 31, 2018 at 10:22 AM
Almost every events in the Unity documentation lack this information
The easiest way to find out is to type in your IDE, and use the "Go to definition" feature.
The signature of the event is the following:
public static event UnityAction<Scene, Scene> activeSceneChanged;
Otherwise, Unity recently opened a Github with the source code of the engine. You will be able to find the event definition here
Your answer
Follow this Question
Related Questions
What is ContactPoint.point? 0 Answers
Polybrush won't save to prefab 1 Answer
How to call function on AssetDatabase.importPackageCompleted 1 Answer
Don't load the whole world 1 Answer