GlobalGameJame/Library/PackageCache/com.unity.timeline@1.2.10/Editor/Actions/MarkerActions.cs

18 lines
464 B
C#
Raw Normal View History

2020-01-31 15:10:04 +00:00
using JetBrains.Annotations;
using UnityEngine;
using UnityEngine.Timeline;
using MarkerAction = UnityEditor.Timeline.ItemAction<UnityEngine.Timeline.IMarker>;
namespace UnityEditor.Timeline
{
[UsedImplicitly]
class CopyMarkersToClipboard : MarkerAction
{
public override bool Execute(WindowState state, IMarker[] markers)
{
TimelineEditor.clipboard.CopyItems(markers.ToItems());
return true;
}
}
}