Page 1 of 1

Error : Non-static method requires a target.

Posted: Fri Nov 26, 2021 8:19 pm
by JoshuaLiu
When I open the project:
System.Reflection.TargetException: Non-static method requires a target.
at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0004c] in <695d1cc93cca45069c528c15c9fdd749>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
at UnityEditor.EditorAssemblies.ProcessInitializeOnLoadMethodAttributes () [0x00047] in <ad50112e30b445fdbf80d5814c3cbcf6>:0
UnityEditor.EditorAssemblies:ProcessInitializeOnLoadMethodAttributes ()

Please help me, Thanks!

Re: Error : Non-static method requires a target.

Posted: Sat Nov 27, 2021 7:10 am
by websbk
JoshuaLiu wrote: Fri Nov 26, 2021 8:19 pm When I open the project:
System.Reflection.TargetException: Non-static method requires a target.
at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0004c] in <695d1cc93cca45069c528c15c9fdd749>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
at UnityEditor.EditorAssemblies.ProcessInitializeOnLoadMethodAttributes () [0x00047] in <ad50112e30b445fdbf80d5814c3cbcf6>:0
UnityEditor.EditorAssemblies:ProcessInitializeOnLoadMethodAttributes ()

Please help me, Thanks!
this is a problem of Unity itself and not of the package

Re: Error : Non-static method requires a target.

Posted: Wed Dec 15, 2021 11:47 am
by kwikman
Have anybody managed to solve this? I got the same error in 2020.3.24

Greetings
Kaj

Re: Error : Non-static method requires a target.

Posted: Tue Dec 21, 2021 12:04 pm
by kwikman
Hmm, forget the questions, seem like somebody else said a Unity problem. Seems to work anyway.

Br
Kaj