mirror of
https://github.com/brl/mutter.git
synced 2024-12-27 13:22:15 +00:00
e8e360eaa7
This recipe explains how to "reuse" the same animation definition for different actors, by creating a new instance of a "rig" (empty container) and animation for the rig each time the animation is required. An actor is then re-parented to the rig and animated using it, rather than being animated directly. JSON is used to define the rig + animator, to make creating new instances of them simpler. The recipe also discusses various caveats around using this approach, rather than directly animating an actor. |
||
---|---|---|
.. | ||
examples | ||
images | ||
videos | ||
actors.xml | ||
animations.xml | ||
clutter-cookbook.xml.in | ||
events.xml | ||
introduction.xml | ||
layouts.xml | ||
Makefile.am | ||
recipe-template.xml | ||
script.xml | ||
text.xml | ||
textures.xml | ||
version.xml.in |