BabylonMorphTargetManager.cs 634 B

1234567891011121314151617181920212223242526
  1. using System.Runtime.Serialization;
  2. namespace BabylonExport.Entities
  3. {
  4. [DataContract]
  5. public class BabylonMorphTargetManager
  6. {
  7. private static int NB_BABYLON_MORPH_TARGET_MANAGER;
  8. [DataMember(IsRequired = true)]
  9. public int id { get; set; }
  10. [DataMember(IsRequired = true)]
  11. public BabylonMorphTarget[] targets { get; set; }
  12. public static void Reset()
  13. {
  14. NB_BABYLON_MORPH_TARGET_MANAGER = 0;
  15. }
  16. public BabylonMorphTargetManager()
  17. {
  18. id = NB_BABYLON_MORPH_TARGET_MANAGER++;
  19. }
  20. }
  21. }