AnimationSettings.cs 761 B

12345678910111213141516171819
  1. using System;
  2. using UnityEngine;
  3. using UnityEngine.Rendering;
  4. namespace Siccity.GLTFUtility {
  5. /// <summary> Defines how animations are imported </summary>
  6. [Serializable]
  7. public class AnimationSettings {
  8. public bool looping;
  9. [Tooltip("Sample rate set on all imported animation clips.")]
  10. public float frameRate = 24;
  11. [Tooltip("Interpolation mode applied to all keyframe tangents. Use Import From File when mixing modes within an animation.")]
  12. public InterpolationMode interpolationMode = InterpolationMode.ImportFromFile;
  13. [Tooltip("When true, remove redundant keyframes from blend shape animations.")]
  14. public bool compressBlendShapeKeyFrames = true;
  15. [Tooltip("Load animations as legacy AnimationClips.")]
  16. public bool useLegacyClips;
  17. }
  18. }