summaryrefslogtreecommitdiff
path: root/Library/PackageCache/com.unity.timeline@1.2.13/Editor/Actions/MarkerActions.cs
blob: 410b5c3134f7bdb30370b424e1aca1a3b7ca95e9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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;
        }
    }
}