Search Issue Tracker
Fixed in 2017.1.X
Votes
0
Found in
5.6.0f1
Issue ID
893975
Regression
No
"UnityEditor.InitializeOnLoad" calls constructor three times when Unity Editor is opened if project is edited outside of Editor
How to reproduce:
1. Download users attached project "doubleInitialize"
2. Create or edit a script in Assets folder (without opening Unity)
3. Start Unity and open "doubleInitialize" project
Expected result: The static constructor logs once, Unity recompiles and reloads assemblies, and the constructor logs a second time
Actual result: The static constructor logs 3 times
Reproducible with - 2017.1.0a5, 5.6.0f2, 5.5.2p3 5.4.5f1
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- 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 with meta files from previous Editor versions
- Input.mousePosition returns (NaN, NaN, 0.00) when Scene view is opened
Add comment