internal override void Write(ResourceWriter writer) { writer.WriteInt32(( int )KeyframeType); writer.WriteInt32(Keyframes.Count); KeyframeTimings.ForEach(writer.WriteSingle); Keyframes.ForEach(x => x.Write(writer)); if (UsesScaleVectors()) { writer.WriteVector3(PositionScale); writer.WriteVector3(ScaleScale); } }