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
- ListView fails to display items when the source list is cleared and a single element is added
- UI Toolkit ':hover' state remains active when another panel is drawn over the hovered element and Touch input is used
- Unsupported Orient modes can be selected and throw errors when using Strip VFX
- "Tab" key exits the name text field in the VFX Graph tab when renaming the Property
- Shader warnings are thrown when deleting blocks in the Ribbon VFX Graph
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.