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
- Previous model to world matrix is not correctly set for ASW
- More calls are made to GC.Alloc in an HDRP Sample Template when compared to the 2022.3 stream
- Generating Light Probe lighting returns inconsistent results on a specific mesh
- Two Warnings appear for every Soft Delete Operation when Deleting Sub Assets in the Project Browser
- “Item m_LightProbeSystem not found” warning is thrown when pressing the “Open” button multiple times in the Adaptive Probe Volume component warning
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.