-
Notifications
You must be signed in to change notification settings - Fork 437
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
参数为Vector3[]时候类型匹配不上 #67
Comments
slua暂时对数组的支持不全,你需要自行添加
|
你需要在LuaObject_overload.cs加入vector3[]的的checkType, static public bool checkType(IntPtr l, int p, out Vector3[] array) |
所以问题是c#里数组作为参数,lua调用时重载无法匹配 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
EG:C#
class Helper{
//重载方法中有 数组
public static void move(GameObject obj,Vector3[] paths,float t){}
//有重载方法
public static void move(GameObject obj,Vector pos,float t){}
}
上面的函数会调用不了
lua
local paths={}
table.insert(paths,Vector3(0.1,1,0))
table.insert(paths,Vector3(1.1,1,2.3))
Helper. move(go,paths,1)
报错 No matched override function to call
The text was updated successfully, but these errors were encountered: