The PlayablesAn API that provides a way to create tools, effects or other gameplay mechanisms by organizing and evaluating data sources in a tree-like structure known as the PlayableGraph. More info
See in Glossary API examples include sample scriptsA piece of code that allows you to create your own Components, trigger game events, modify Component properties over time and respond to user input in any way you like. More info
See in Glossary that demonstrate how to perform basic animation tasks such as playing, mixing, and controlling animation clipsAnimation data that can be used for animated characters or simple animations. It is a simple “unit” piece of motion, such as (one specific instance of) “Idle”, “Walk” or “Run”. More info
See in Glossary or other playables. The Playables API examples include the following topics:
Topic | Description |
---|---|
PlayableGraph Visualizer | The 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 clip | Learn how to create a PlayableGraph that plays a single animation clip. |
Blend two animation clips | Learn how to use a AnimationMixerPlayable to blend two animation clips. |
Blend an animation clip with a controller | Learn how to use a AnimatorMixerPlayable to blend an animation clip with an Animator ControllerControls animation through Animation Layers with Animation State Machines and Animation Blend Trees, controlled by Animation Parameters. The same Animator Controller can be referenced by multiple models with Animator components. More infoSee in Glossary. |
Control the play state | Learn about the Pause() and Play() methods and how to control the play state of a PlayableGraph . |
Control the timing of a playable clip | Learn about the SetTime() method and how to manually set the start of a paused playable. |
Create a PlayableGraph with different outputs | Learn how to create a PlayableGraph with two different playable output types. |
Create a custom playable | Learn about the PlayableBehaviour public class to create a custom Playable. This example also demonstrate how to override the PrepareFrame() virtual method. |