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
- Text render issues and various exceptions in TextCore when using TextSettings option "Match Material Presets"
- NullReferenceException error is thrown when unpacking multiple instances of the same UI Document
- URP Decal Projectors don't render when they are hidden in the Hierarchy, unlike other GameObjects
- Reflection Probe “adjusting number of stops to over or under expose the texture” setting does not update in Scene realtime
- UI Toolkit rendered text breaks when toggling FontWeight styles through code
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.