CurveControlBehaviour.cs 593 B

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. using UnityEngine;
  3. using UnityEngine.Playables;
  4. using UnityEngine.Timeline;
  5. [Serializable]
  6. public class CurveControlBehaviour : PlayableBehaviour
  7. {
  8. [HideInInspector]
  9. public TimelineClip Clip;
  10. public AnimationCurve ac;
  11. public String valueName;
  12. public CurveValueType mCurveValueType;
  13. public int index;
  14. public float defaultValue;
  15. public CurveControlType m_curveControlType;
  16. }
  17. public enum CurveControlType
  18. {
  19. Start,
  20. Transition,
  21. End,
  22. }
  23. public enum CurveValueType
  24. {
  25. Float,
  26. Vector2,
  27. Vector4,
  28. }