ISnappable.cs 484 B

12345678910111213141516171819202122
  1. using System.Collections.Generic;
  2. namespace UnityEditor.Timeline
  3. {
  4. struct Edge
  5. {
  6. public double time { get; set; }
  7. public bool showSnapHint { get; set; }
  8. public Edge(double edgeTime, bool snapHint = true) : this()
  9. {
  10. time = edgeTime;
  11. showSnapHint = snapHint;
  12. }
  13. }
  14. interface ISnappable
  15. {
  16. IEnumerable<Edge> SnappableEdgesFor(IAttractable attractable, ManipulateEdges manipulateEdges);
  17. }
  18. }