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