public static Vector2 ToVector2(IntPtr L, int idx) { Vector2 res; LuaAPI.ToVector2(L, idx, out res.x, out res.y); return(res); }