Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Playables API examples

Provides example scripts that demonstrate how to use the Playables API.
Read time 1 minuteLast updated 21 days ago

The Playables API examples include sample scripts that demonstrate how to perform basic animation tasks such as playing, mixing, and controlling animation clips or other playables. The Playables API examples include the following topics:

Topic

Description

PlayableGraph VisualizerThe Playable API examples use the PlayableGraph Visualizer package to visualize the result of most scripts. This topic demonstrates how to download and install the PlayableGraph Visualizer package. Note: The PlayableGraph Visualizer is a discontinued experimental package that might not work with your version of Unity.
Play an animation clipLearn how to create a
PlayableGraph
that plays a single animation clip.
Blend two animation clipsLearn how to use a
AnimationMixerPlayable
to blend two animation clips.
Blend an animation clip with a controllerLearn how to use a
AnimatorMixerPlayable
to blend an animation clip with an Animator Controller.
Control the play stateLearn about the
Pause()
and
Play()
methods and how to control the play state of a
PlayableGraph
.
Control the timing of a playable clipLearn about the
SetTime()
method and how to manually set the start of a paused playable.
Create a PlayableGraph with different outputsLearn how to create a
PlayableGraph
with two different playable output types.
Create a custom playableLearn about the
PlayableBehaviour
public class to create a custom Playable. This example also demonstrate how to override the
PrepareFrame()
virtual method.

Additional resources