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
- Crash on when D3D12RenderPass::SetupDeviceResources when opening FBX animation preview
- Serialization errors are thrown when "com.unity.render-pipelines.core" is added as a custom package and Graphics window is opened
- Character Joints unexpectedly rotate when a ragdoll is created using the Ragdoll Wizard
- Crash on GfxDeviceD3D11Base::DrawBuffersBatchMode when rendering the Scene view
- The shared EditorBuildSettings.asset file of symlinked projects is not updated when changing the order of the Scenes in Build Settings in one of the projects
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.