Няма описание
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.

123456789101112131415161718192021
  1. using UnityEngine;
  2. using UnityEngine.Playables;
  3. using UnityEngine.Timeline;
  4. namespace Timeline.Samples
  5. {
  6. // A track that allows the user to do simple transform movements.
  7. // It demonstrates how to define a custom track mixer in order to support blending of clips.
  8. [TrackColor(1.0f, 0.0f, 0.0f)]
  9. [TrackBindingType(typeof(Transform))]
  10. [TrackClipType(typeof(TweenClip))]
  11. public class TweenTrack : TrackAsset
  12. {
  13. // Creates a runtime instance of the track, represented by a PlayableBehaviour.
  14. // The runtime instance performs mixing on the clips.
  15. public override Playable CreateTrackMixer(PlayableGraph graph, GameObject go, int inputCount)
  16. {
  17. return ScriptPlayable<TweenMixerBehaviour>.Create(graph, inputCount);
  18. }
  19. }
  20. }