Search Issue Tracker

Fixed in 2018.3.X

Votes

0

Found in

2018.1.0a5

2018.1.0b13

Issue ID

1021423

Regression

Yes

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

Scripting

-

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)

Add comment

Log in to post comment

All about bugs

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