Search Issue Tracker
Won't Fix
Votes
1
Found in
2018.1.0f2
Issue ID
1033192
Regression
No
A non-static method with an InitializeOnLoadMethod attribute shows a not very helpful error
To reproduce:
1. Open the project, attached by the tester (nonhelpfulError.zip)
2. Observe the console
Expected: the error points to the method or otherwise tell that a method with [InitializeOnLoadMethod] should be static
Reproduced in 2018.1.0a5, 2018.1.0f2, 2018.2.0b3, 2018.3.0a1
Did not reproduce in 2018.1.0a4 and earlier versions of Unity, the error is not shown at all
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
- “Label” name in Sprite Library Editor window lacks character limit causing long names go under the Object Field
- Preview image (screenshot) is not available after capturing snapshot in Memory Profiler
- Crash on UNITY_FT_Stream_ReadAt when changing TMPro properties after unloading an AssetBundle
- Particles spawn at the same position when using raw byte address buffer in VFX Graph
- Decal Shader Graph - Custom vertex interpolators are always 0
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.