Search Issue Tracker

Won't Fix

Votes

0

Found in

2018.1.0b12

Issue ID

1019360

Regression

No

RuntimeInitializeOnLoadMethodAttribute not invoked if class is generic

Scripting

-

Steps to reproduce:
1. Open user attached project
2. Enter play mode
3. Methods are invoked as expeted. "OnBeforeSceneLoaded" and "OnAfterSceneLoaded" is printed to the console
4. Remove comment from line 1 to use generic class
5. Enter Play mode again
6. Methods are not invoked. No Output to console window

Expected result: RuntimeInitializeOnLoadMethodAttribute should be invoked if class is generic

Reproduced in: 2018.2.0a7, 2018.1.0b13, 2017.4.1f1, 2017.3.2f1, 2017.2.2p1, 2017.1.3p2

  1. Resolution Note:

    This particular case has been investigated thoroughly and we have decided, in the interests of protecting the stability and features of Unity for users that rely upon the affected versions, to not address this fix for the time being. We understand that this will cause problems for some users, and so may address in a future version.

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.