GLTFAnimation.cs 835 B

12345678910111213141516171819202122
  1. using System.Collections.Generic;
  2. using System.Runtime.Serialization;
  3. namespace GLTFExport.Entities
  4. {
  5. [DataContract]
  6. public class GLTFAnimation : GLTFChildRootProperty
  7. {
  8. /// <summary>
  9. /// An array of channels, each of which targets an animation's sampler at a node's property.
  10. /// Different channels of the same animation can't have equal targets.
  11. /// </summary>
  12. [DataMember(IsRequired = true)]
  13. public GLTFChannel[] channels { get; set; }
  14. /// <summary>
  15. /// An array of samplers that combines input and output accessors with an interpolation algorithm to define a keyframe graph (but not its target).
  16. /// </summary>
  17. [DataMember(IsRequired = true)]
  18. public GLTFAnimationSampler[] samplers { get; set; }
  19. }
  20. }