TimeDilationTrack.cs 413 B

12345678910111213
  1. using UnityEngine;
  2. using UnityEngine.Playables;
  3. using UnityEngine.Timeline;
  4. [TrackColor(0.855f, 0.8623f, 0.87f)]
  5. [TrackClipType(typeof(TimeDilationClip))]
  6. public class TimeDilationTrack : TrackAsset
  7. {
  8. public override Playable CreateTrackMixer(PlayableGraph graph, GameObject go, int inputCount)
  9. {
  10. return ScriptPlayable<TimeDilationMixerBehaviour>.Create (graph, inputCount);
  11. }
  12. }