123456789101112131415161718192021222324252627 |
- 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]
- 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;
- }
- }
- }
- }
|