GlobalGameJame/Library/PackageCache/com.unity.timeline@1.2.10/Runtime/Events/MarkerTrack.cs

29 lines
746 B
C#
Raw Normal View History

2020-01-31 15:10:04 +00:00
using System;
using System.Collections.Generic;
using UnityEngine.Playables;
namespace UnityEngine.Timeline
{
/// <inheritdoc />
/// <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;
}
}
}
}