Detect if null references or Errors

Hi! For the sake of our project and debugs, we want to detect when an error occures in the code. Is there a way to detect with like a listener or something like this ? I know there’s the “try catch”. But I can’t go in each script to modify each methods to implement a try catch.

You can write a log handler. Some example code here: Unity - Scripting API: Logger

1 Like

Thanks I’ll dig into it.

All errors (exceptions), unless inside a try/try-catch block, will always be put in the Unity console.

1 Like