public static Vector2 ToValue(byte[] table, int index) { UnionVector2 bt = new UnionVector2(); bt.SetBytes(table, index); return(bt.value); }
public static byte[] ToBytes(Vector2 val) { UnionVector2 bt = new UnionVector2(); bt.value = val; return(bt.bytes); }
// UnityUnions public static byte[] ToBytes(Vector2 val) { return(UnionVector2.ToBytes(val)); }
// UnityUnions public static int ToValue(out Vector2 ret, byte[] bytes, int index) { ret = UnionVector2.ToValue(bytes, index); return(UnionVector2.Size); }