We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
例如想打印热更新的dll的名字, 会报错 [Message] public class Entry { public static void Init() { UnityEngine.Debug.Log(typeof(Entry).Assembly.FullName); } }
TargetException: Object does not match target type. System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:236) System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115) CLRSharp.Method_Common_System.Invoke (CLRSharp.ThreadContext context, System.Object _this, System.Object[] _params) (at Assets/Plugins/CLRSharp/CLRSharp/Type/System/System_Type.cs:483) CLRSharp.Method_Common_System.Invoke (CLRSharp.ThreadContext context, System.Object _this, System.Object[] _params, Boolean bVisual) (at Assets/Plugins/CLRSharp/CLRSharp/Type/System/System_Type.cs:329) CLRSharp.StackFrame.Call (CLRSharp.ThreadContext context, IMethod _clrmethod, Boolean bVisual) (at Assets/Plugins/CLRSharp/CLRSharp/Execute/StackFrame.cs:444) CLRSharp.ThreadContext.RunCode (CLRSharp.StackFrame stack, CLRSharp.CodeBody body) (at Assets/Plugins/CLRSharp/CLRSharp/Execute/Context.cs:748) CLRSharp.ThreadContext.ExecuteFunc (IMethod_Sharp method, System.Object _this, System.Object[] _params) (at Assets/Plugins/CLRSharp/CLRSharp/Execute/Context.cs:150) CLRSharp.Method_Common_CLRSharp.Invoke (CLRSharp.ThreadContext context, System.Object _this, System.Object[] _params, Boolean bVisual) (at Assets/Plugins/CLRSharp/CLRSharp/Type/CLRSharp/CLRSharp_Type.cs:518) CLRSharp.Method_Common_CLRSharp.Invoke (CLRSharp.ThreadContext context, System.Object _this, System.Object[] _params) (at Assets/Plugins/CLRSharp/CLRSharp/Type/CLRSharp/CLRSharp_Type.cs:531) Init.Start () (at Assets/Scripts/Init.cs:38)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
例如想打印热更新的dll的名字, 会报错
[Message]
public class Entry
{
public static void Init()
{
UnityEngine.Debug.Log(typeof(Entry).Assembly.FullName);
}
}
TargetException: Object does not match target type.
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:236)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115)
CLRSharp.Method_Common_System.Invoke (CLRSharp.ThreadContext context, System.Object _this, System.Object[] _params) (at Assets/Plugins/CLRSharp/CLRSharp/Type/System/System_Type.cs:483)
CLRSharp.Method_Common_System.Invoke (CLRSharp.ThreadContext context, System.Object _this, System.Object[] _params, Boolean bVisual) (at Assets/Plugins/CLRSharp/CLRSharp/Type/System/System_Type.cs:329)
CLRSharp.StackFrame.Call (CLRSharp.ThreadContext context, IMethod _clrmethod, Boolean bVisual) (at Assets/Plugins/CLRSharp/CLRSharp/Execute/StackFrame.cs:444)
CLRSharp.ThreadContext.RunCode (CLRSharp.StackFrame stack, CLRSharp.CodeBody body) (at Assets/Plugins/CLRSharp/CLRSharp/Execute/Context.cs:748)
CLRSharp.ThreadContext.ExecuteFunc (IMethod_Sharp method, System.Object _this, System.Object[] _params) (at Assets/Plugins/CLRSharp/CLRSharp/Execute/Context.cs:150)
CLRSharp.Method_Common_CLRSharp.Invoke (CLRSharp.ThreadContext context, System.Object _this, System.Object[] _params, Boolean bVisual) (at Assets/Plugins/CLRSharp/CLRSharp/Type/CLRSharp/CLRSharp_Type.cs:518)
CLRSharp.Method_Common_CLRSharp.Invoke (CLRSharp.ThreadContext context, System.Object _this, System.Object[] _params) (at Assets/Plugins/CLRSharp/CLRSharp/Type/CLRSharp/CLRSharp_Type.cs:531)
Init.Start () (at Assets/Scripts/Init.cs:38)
The text was updated successfully, but these errors were encountered: