Açıklama Yok
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

TimeDilationTrack.cs 862B

12345678910111213141516171819202122
  1. using UnityEngine;
  2. using UnityEngine.Playables;
  3. using UnityEngine.Timeline;
  4. namespace Timeline.Samples
  5. {
  6. // Timeline track that supports changing the game time
  7. // The TimeDilation track demonstrates how to
  8. // * Support blended and/or extrapolated clips.
  9. // * Support changing a Unity static variable from timeline.
  10. [TrackColor(0.855f, 0.8623f, 0.87f)]
  11. [TrackClipType(typeof(TimeDilationPlayableAsset))]
  12. public class TimeDilationTrack : TrackAsset
  13. {
  14. // Creates a runtime instance of the track, represented by a PlayableBehaviour.
  15. // The runtime instance performs mixing on the timeline clips.
  16. public override Playable CreateTrackMixer(PlayableGraph graph, GameObject go, int inputCount)
  17. {
  18. return ScriptPlayable<TimeDilationMixerBehaviour>.Create(graph, inputCount);
  19. }
  20. }
  21. }