ITrimItemMode.cs 475 B

1234567891011121314151617181920212223
  1. using UnityEngine;
  2. namespace UnityEditor.Timeline
  3. {
  4. enum TrimEdge
  5. {
  6. Start,
  7. End
  8. }
  9. interface ITrimItemMode
  10. {
  11. void OnBeforeTrim(ITrimmable item, TrimEdge trimDirection);
  12. void TrimStart(ITrimmable item, double time);
  13. void TrimEnd(ITrimmable item, double time, bool affectTimeScale);
  14. }
  15. interface ITrimItemDrawer
  16. {
  17. void DrawGUI(WindowState state, Rect bounds, Color color, TrimEdge edge);
  18. }
  19. }