UnityGame/Library/PackageCache/com.unity.timeline/Editor/Actions/MarkerActions.cs
2024-10-27 10:53:47 +03:00

21 lines
546 B
C#

using System.Collections.Generic;
using JetBrains.Annotations;
using UnityEditor.Timeline.Actions;
using UnityEngine;
using UnityEngine.Timeline;
namespace UnityEditor.Timeline
{
[UsedImplicitly]
class CopyMarkersToClipboard : MarkerAction
{
public override ActionValidity Validate(IEnumerable<IMarker> markers) => ActionValidity.Valid;
public override bool Execute(IEnumerable<IMarker> markers)
{
TimelineEditor.clipboard.CopyItems(markers.ToItems());
return true;
}
}
}