rimworld-animation-studio/Library/PackageCache/com.unity.timeline@1.2.18/Runtime/Events/MarkerTrack.cs

29 lines
746 B
C#
Raw Normal View History

2022-09-13 05:36:34 +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;
}
}
}
}