Пример #1
0
 public static SerializableTransform From(Transform transform)
 {
     return(new SerializableTransform(SerializableVector3.From(transform.position),
                                      SerializableVector3.From(transform.localScale),
                                      SerializableQuaternion.From(transform.rotation)));
 }
Пример #2
0
 public SerializableTransform(SerializableVector3 position, SerializableVector3 scale, SerializableQuaternion rotation)
 {
     this.Position = position;
     this.Scale    = scale;
     this.Rotation = rotation;
 }