123456789101112131415161718192021222324252627 |
- 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<CurveControlMixerBehaviour>.Create(graph, inputCount);
- }
- public override void GatherProperties(PlayableDirector director, IPropertyCollector driver)
- {
- }
- }
|