GLTFChannel.cs 659 B

123456789101112131415161718192021
  1. using System.Runtime.Serialization;
  2. namespace GLTFExport.Entities
  3. {
  4. [DataContract]
  5. public class GLTFChannel : GLTFProperty
  6. {
  7. /// <summary>
  8. /// The index of a sampler in this animation used to compute the value for the target,
  9. /// e.g., a node's translation, rotation, or scale (TRS).
  10. /// </summary>
  11. [DataMember(IsRequired = true)]
  12. public int sampler { get; set; }
  13. /// <summary>
  14. /// The index of the node and TRS property to target.
  15. /// </summary>
  16. [DataMember(IsRequired = true)]
  17. public GLTFChannelTarget target { get; set; }
  18. }
  19. }