No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

MarkerActions.cs 546B

1234567891011121314151617181920
  1. using System.Collections.Generic;
  2. using JetBrains.Annotations;
  3. using UnityEditor.Timeline.Actions;
  4. using UnityEngine;
  5. using UnityEngine.Timeline;
  6. namespace UnityEditor.Timeline
  7. {
  8. [UsedImplicitly]
  9. class CopyMarkersToClipboard : MarkerAction
  10. {
  11. public override ActionValidity Validate(IEnumerable<IMarker> markers) => ActionValidity.Valid;
  12. public override bool Execute(IEnumerable<IMarker> markers)
  13. {
  14. TimelineEditor.clipboard.CopyItems(markers.ToItems());
  15. return true;
  16. }
  17. }
  18. }