ITimelineItem.cs 976 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. using System;
  2. using UnityEngine.Timeline;
  3. namespace UnityEditor.Timeline
  4. {
  5. interface ITimelineItem : IEquatable<ITimelineItem>
  6. {
  7. double start { get; set; }
  8. double end { get; }
  9. double duration { get; }
  10. TrackAsset parentTrack { get; set; }
  11. bool IsCompatibleWithTrack(TrackAsset track);
  12. void Delete();
  13. ITimelineItem CloneTo(TrackAsset parent, double time);
  14. void PushUndo(string operation);
  15. TimelineItemGUI gui { get; }
  16. }
  17. interface ITrimmable : ITimelineItem
  18. {
  19. void SetStart(double time);
  20. void SetEnd(double time, bool affectTimeScale);
  21. void TrimStart(double time);
  22. void TrimEnd(double time);
  23. }
  24. interface IBlendable : ITimelineItem
  25. {
  26. bool supportsBlending { get; }
  27. bool hasLeftBlend { get; }
  28. bool hasRightBlend { get; }
  29. double leftBlendDuration { get; }
  30. double rightBlendDuration { get; }
  31. }
  32. }