Debugging

4_ScriptableEvent

You can also easily debug events by raising them from the editor. Just select any of your scriptable events and click on the Raise button at runtime. If you want to see console logs when this event is fired and which method are called from it then set “debug log enabled” to true.

A screenshot of a video game

Description automatically generated with low confidence

Or using the shortcut when it is exposed in your class:

A screenshot of a computer

Description automatically generated

Finally, you can quickly display an inline inspector from classes using the small arrow next to the variable name. Similarly to scriptable variables and lists. This is very useful to debug your events quickly.

A screenshot of a computer

Description automatically generated with medium confidence

Last updated