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
- Volumetric fog shader variants are missing from build when "Strict Shader Variant Matching" is disabled
- Unnecessary modifications clutter the Scene when using a RectTransform driven by a LayoutGroup in a Prefab
- Files in the target folder are deleted without a proper warning when building an iOS project
- Character animation freezes when toggling animator on/off in a coroutine
- Certain textures are incorrectly marked in the render pass list when observed through Render Graph Viewer
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.