"Invalid arguments to method call" error when calling a function that returns an object · Issue #534 · NLua/NLua · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting a Invalid arguments to method call error when I try to call the following method from Lua:
public RigidBody GetRigidbodyOnSelf()
{
return ParentObject.ObjectRigidbody;
}
I've registered the method by doing LuaCodeRunner.RegisterFunction("GetSelfRB", typeof(ScriptRunner).GetMethod("GetRigidbodyOnSelf"));, and I call the function like so:
function Start()
RB = GetSelfRB()
end
function Update(DeltaTime)
end
The text was updated successfully, but these errors were encountered:
MEMESCOEP
changed the title
"Invalid arguments to method call" error when calling a function that returns a value
"Invalid arguments to method call" error when calling a function that returns an object
Aug 23, 2024
I'm getting a
Invalid arguments to method call
error when I try to call the following method from Lua:I've registered the method by doing
LuaCodeRunner.RegisterFunction("GetSelfRB", typeof(ScriptRunner).GetMethod("GetRigidbodyOnSelf"));
, and I call the function like so:The text was updated successfully, but these errors were encountered: