using UnityEngine; using UnityEngine.Playables; using UnityEngine.Timeline; using System.Collections.Generic; [TrackColor(0.9454092f, 0.9779412f, 0.3883002f)] [TrackClipType(typeof(CurveControlClip))] [TrackBindingType(typeof(Renderer))] public class CurveControlTrack : TrackAsset { public override Playable CreateTrackMixer(PlayableGraph graph, GameObject go, int inputCount) { foreach (var clip in GetClips()) { var mcb = clip.asset as CurveControlClip; mcb.clipPassthrough = clip; } return ScriptPlayable.Create(graph, inputCount); } public override void GatherProperties(PlayableDirector director, IPropertyCollector driver) { } }