Timeline Mixer โณ
January 19, 2021 ยท View on GitHub
Timeline Mixer allows for blending between currently playing (or paused) timeline animation and other animations per animator.

Quick Start ๐๐ผ
- Add a
TimelineGraph Modification Managercomponent to your scene for every timeline you want to inject into and drag theTimeline Directoryou want to modify in the Director field.

- Add a
Simple Animation Clip Mixercomponent to your scene and reference theAnimatorcomponent you want to blend animation with.

- Add a reference to the
Simple Animation Clip Mixerto yourTimelineGraph Modification Managerlist of mixers.

Advanced ๐ก
You can create your own mixer behaviours by implementing a Timeline AnimationMixer and overriding the OnConnected and OnUpdate methods.
-
OnConnectedis called once when the new mixer is injected into the timeline's playable graph. Use it to add inputs to the injectedAnimationLayerMixerPlayablenode by calling the extension methodmixer.AddClipand store the output index for blending. -
OnUpdateis called every frame with a reference to the injected mixer node and manager. Use it to update the weights on
Playing animation while Timeline is paused โ๏ธ
To play animation while the PlayableDirector is paused you can call the RequireTimelineEvaluate() method on TimelineGraph Modification Manager from the OnUpdate method of your Timeline AnimationMixer. This will trigger a call to Evaluate on the PlayableDirector at the end of the update.
How does it work? ๐ค
Behind the scenes Timeline Mixer injects into the Playable Graph generated by Unity's Timeline. You can visualize that graph by installing the Playable Graph Visualizer package.

Contact โ๏ธ
needle โ tools for unity โข @NeedleTools โข @marcel_wiessler โข @hybridherbst