RuntimeClipBase.cs 502 B

123456789101112131415161718192021
  1. using System;
  2. using UnityEngine;
  3. namespace UnityEngine.Timeline
  4. {
  5. internal abstract class RuntimeClipBase : RuntimeElement
  6. {
  7. public abstract double start { get; }
  8. public abstract double duration { get; }
  9. public override Int64 intervalStart
  10. {
  11. get { return DiscreteTime.GetNearestTick(start); }
  12. }
  13. public override Int64 intervalEnd
  14. {
  15. get { return DiscreteTime.GetNearestTick(start + duration); }
  16. }
  17. }
  18. }