Search Issue Tracker
Fixed in 2020.2.X
Votes
0
Found in
2019.4
2020.3
2020.3.3f1
2021.1
2021.2
Issue ID
1327988
Regression
No
RuntimeInitializeOnLoad methods are called multiple times when using define constraints for precompiled assemblies
How to reproduce:
1. Open the attached "RuntimeInitializeOnLoad.zip" project
2. Build and Run to Standalone
3. Close the Build
4. Open and inspect the Player log
Expected result: RuntimeInitializeOnLoad methods are called one time
Actual result: RuntimeInitializeOnLoad methods are called multiple times
Reproducible with: 2019.4.25f1, 2020.3.6f1, 2021.1.5f1, 2021.2.0a15
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
- Joint Physics result in unexpected behaviors when used for articulated vehicles like buses or trucks
- Standalone Player crashes with "TDerived GetOrLoad<TDerived>() where TDerived : T" when IL2CPP Code generation is set to "Faster (smaller) Builds"
- IndexOutOfRangeException and InvalidOperationException when logging XML string
- Script missing in "Assets/Settings/Mobile_Renderer/GlobalVolumeFeature" of "com.unity.template.urp-blank" template
- “Font Asset Creator - Error Code [Invalid_File_Structure]…“ error is logged when generating Font Assets from fonts which worked with TMP Font Asset Creator
Resolution Note (fix version 2020.2):
Fixed in: 2022.1.0a1