Search Issue Tracker

Fixed in Unity 2018.3



Found in


Issue ID




Exception not thrown when Callbacks.DidReloadScripts attribute is added to a non-static method




Priority: 2Necessary for shipping a final release


Severity: 3Secondary functionality broken

How to reproduce:
1. Open user attached project
2. Open scene "TESTSCENE"
3. Open Assets/"TestComponent.cs" script and notice that an attributed method on line 19 is not static
4. Notice that "An [DidReloadScripts] attributed method is not static" exception is not thrown in the console (see "WHATITDIDIN55.PNG")

Expected result: "UnityException: An [DidReloadScripts] attributed method is not static" exception is thrown
Actual result: mentioned exception is not thrown and the method fails silently ("Debug.Log("DidReloadScripts callback called!");" is never executed)

Reproducible with: 2018.1.0a5, 2018.1.0b13, 2018.2.0a7
Not reproducible with: 2017.3.2f1, 2017.4.1f1, 2018.1.0a4

Fixed in: 2018.3.0a1 (7938e91bc57b)

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.