GpuEcsAnimationBakerData.cs 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. using System;
  2. using Unity.Entities;
  3. using UnityEngine;
  4. namespace GpuEcsAnimationBaker.Engine.Data
  5. {
  6. [Serializable]
  7. public struct GpuEcsAnimationBakerData
  8. {
  9. public AnimationData[] animations;
  10. [Tooltip("Specifies if an animation Ids enum code file needs to be generated")]
  11. public bool generateAnimationIdsEnum;
  12. [Tooltip("Specifies the name of the animation Ids enum to be generated")]
  13. public string animationIdsEnumName;
  14. [Tooltip("Specifies if a predefined event IDs list should be used when searching for events")]
  15. public bool usePredefinedAnimationEventIds;
  16. [Tooltip("Predefined event IDs list used when searching for events")]
  17. public string[] predefinedAnimationEventIds;
  18. [Tooltip("Specifies if an animation event Ids enum code file needs to be generated")]
  19. public bool generateAnimationEventIdsEnum;
  20. [Tooltip("Specifies the name of the animation event Ids enum to be generated")]
  21. public string animationEventIdsEnumName;
  22. public AttachmentAnchor[] attachmentAnchors;
  23. [Tooltip("Specifies if an attachment anchor Ids enum code file needs to be generated")]
  24. public bool generateAttachmentAnchorIdsEnum;
  25. [Tooltip("Specifies the name of the attachment anchor Ids enum to be generated")]
  26. public string attachmentAnchorIdsEnumName;
  27. public BoneUsage boneUsage;
  28. [Tooltip("Specifies the TransformUsageFlags to be used when converting the parent animator to an ECS entity")]
  29. public TransformUsageFlags transformUsageFlagsParent;
  30. [Tooltip("Specifies the TransformUsageFlags to be used when converting the child meshes to an ECS entity")]
  31. public TransformUsageFlags transformUsageFlagsChildren;
  32. }
  33. }