public static Vector3 ToManagedVector(this Vector vector) { return(Marshal.PtrToStructure <Vector3>(vector.Pointer)); }
public static Color ToColor(this Vector vector) { return(new Color(vector.x, vector.y, vector.z)); }