IMarker.cs 906 B

12345678910111213141516171819202122232425262728293031
  1. namespace UnityEngine.Timeline
  2. {
  3. /// <summary>
  4. /// Interface implemented by markers.
  5. /// </summary>
  6. /// <remarks>
  7. /// A marker is a point in time.
  8. /// </remarks>
  9. /// <seealso cref="UnityEngine.Timeline.Marker"/>
  10. public interface IMarker
  11. {
  12. /// <summary>
  13. /// The time set for the marker, in seconds.
  14. /// </summary>
  15. double time { get; set; }
  16. /// <summary>
  17. /// The track that contains the marker.
  18. /// </summary>
  19. TrackAsset parent { get; }
  20. /// <summary>
  21. /// This method is called when the marker is initialized.
  22. /// </summary>
  23. /// <param name="parent">The track that contains the marker.</param>
  24. /// <remarks>
  25. /// This method is called after each deserialization of the Timeline Asset.
  26. /// </remarks>
  27. void Initialize(TrackAsset parent);
  28. }
  29. }