public static Vector3 ToVector3(IntPtr L, int idx) { Vector3 res; LuaAPI.ToVector3(L, idx, out res.x, out res.y, out res.z); return(res); }