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
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
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Timeline section stops rendering after restoring Profiler Window modules
- Cursor image does not update when Cursor.SetCursor is called again with CursorMode.Auto
- Crash on do_runtime_invoke when reopening a specific project after failing to build it
- Animations change speed when rigidbody is added
- Low FPS persists when re-entering Play mode after an extended session in a specific project
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.