DualClipBlendData.cs 853 B

1234567891011121314151617181920212223242526
  1. using System;
  2. using UnityEngine;
  3. namespace GpuEcsAnimationBaker.Engine.Data
  4. {
  5. [Serializable]
  6. public struct DualClipBlendData
  7. {
  8. [Tooltip("The animator parameter that will be used to blend")]
  9. public string blendParameterName;
  10. public DualClipBlendAnimationClip clip1;
  11. public DualClipBlendAnimationClip clip2;
  12. [Tooltip("The nbr of samples to take. More will result in better results but larger baked animation textures")]
  13. public int nbrOfInBetweenSamples;
  14. }
  15. [Serializable]
  16. public struct DualClipBlendAnimationClip
  17. {
  18. [Tooltip("The animator parameter value to blend from or to")]
  19. public float parameterValue;
  20. [Tooltip("Only used to determine the length of the animation.")]
  21. public AnimationClip animationClip;
  22. }
  23. }