Edit: This issue is now solved. Please check the reply at the bottom. Anyone who is using “Narrate” plugin in 2018.1, and having this issue, please check the reply at the bottom
I updated my project to 2018.1.0f2 from 2017.4.2f2.
And I am somehow having really hard time upgrading to it.
And this is the last error left, I’ve searched forums, and I have no idea where this error is coming from:
Well, I figured out that this was caused by an asset called “Narrate”, and seems it is not compatible with 2018.1.
I’m still figuring out how can I fix this asset… Anyone got some idea? Where should I look at?
I finally solved the problem. It has to do with the [InitializeOnLoadMethod] attribute.
So, every method that has [InitializeOnLoadMethod] attribute, should be a static function, according to the manual.
And versions prior to 2018.1.0f2 seems like it doesn’t care whether the function is static or not.
But when you are using 2018.1.0f2, it throws
TargetException: Non-static method requires a target.
And in the details you will see
So when such error occurs, just search [InitializeOnLoadMethod] attribute on your entire solution, and make sure that method is static.
The “Narrate” plugin (link) has such attribute without static modifier in NarrationManagerInspector.cs, and all you have to do is putting static modifier in front of the method.
Hope this helps. It took my whole day to solve this problem…lol…