Debugging
Scriptable Event
Last updated
Scriptable Event
Last updated
Scriptable events also have their own play mode custom inspector. During play mode, you can inspect all GameObjects that are registered to that event:
In editor, if you don’t remember which event calls a method in one of your scripts, you can use the Events Debug Window. You can access it through the menu:
Window/Obvious/Soap/Event Debug Window
By typing the name of the method in the event debug window, it will search all objects in your scene and find which event calls that method. Note: it is case sensitive.
Once the method is found (or not), a message is logged in the console. Clicking on this message will ping the corresponding object in the hierarchy. Additionally, you can click on the debug message to view the stack trace for more detailed information.