PO/Library/PackageCache/com.unity.timeline@1.4.8/Runtime/Events/MarkerTrack.cs

28 lines
723 B
C#
Raw Normal View History

2022-01-12 10:06:03 +03:00
using System;
using System.Collections.Generic;
using UnityEngine.Playables;
namespace UnityEngine.Timeline
{
/// <summary>
/// Use this track to add Markers bound to a GameObject.
/// </summary>
[Serializable]
[TrackBindingType(typeof(GameObject))]
[HideInMenu]
[ExcludeFromPreset]
public class MarkerTrack : TrackAsset
{
/// <inheritdoc/>
public override IEnumerable<PlayableBinding> outputs
{
get
{
return this == timelineAsset.markerTrack ?
new List<PlayableBinding> {ScriptPlayableBinding.Create(name, null, typeof(GameObject))} :
base.outputs;
}
}
}
}