Skip to content
New issue

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

Hardwire some type error #158

Open
issingle opened this issue Oct 10, 2016 · 1 comment
Open

Hardwire some type error #158

issingle opened this issue Oct 10, 2016 · 1 comment

Comments

@issingle
Copy link

hardwire Untiy3d's GUI Type,

        private sealed class MTHD_be079e5823b7454890b6cf3fb4ed05ad : MoonSharp.Interpreter.Interop.StandardDescriptors.HardwiredDescriptors.HardwiredMethodMemberDescriptor {

            internal MTHD_be079e5823b7454890b6cf3fb4ed05ad() {
                this.Initialize(".ctor", true, new MoonSharp.Interpreter.Interop.BasicDescriptors.ParameterDescriptor[] {
                            new MoonSharp.Interpreter.Interop.BasicDescriptors.ParameterDescriptor("object", typeof(object), false, null, false, false, false),
                            new MoonSharp.Interpreter.Interop.BasicDescriptors.ParameterDescriptor("method", typeof(System.IntPtr), false, null, false, false, false)}, false);
            }

            protected override object Invoke(MoonSharp.Interpreter.Script script, object obj, object[] pars, int argscount) {
                //here error!
                return new UnityEngine.GUI.WindowFunction(((object)(pars[0])), ((System.IntPtr)(pars[1])));
            }
        }

UnityEngine.GUI.WindowFunction is a delegate.

@xanathar
Copy link
Member

I check, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants