Unity - Manual: Animation system overview (2024)

  • Animation
  • Animation system overview

Unity has two animation systems with different capabilities and performance characteristics:

  • Unity’s animation system, also known as Mecanim, is a rich and sophisticated animation system. It uses the Animator componentA component on a model that animates that model using the Animation system. The component has a reference to an Animator Controller asset that controls the animation. More info
    See in Glossary
    , the Animation window, and the Animator windowThe window where the Animator Controller is visualized and edited. More info
    See in Glossary
    . The remaining sections of this page describe this system.
  • Unity’s Legacy Animation system has a smaller feature setA feature set is a collection of related packages that you can use to achieve specific results in the Unity Editor. You can manage feature sets directly in Unity’s Package Manager. More info
    See in Glossary
    . It uses the Animation component and was the only animation system available before Unity 4.

Unity’s animation system is recommended in most situations and provides better performance for complex animations with many animation curvesAllows you to add data to an imported clip so you can animate the timings of other items based on the state of an animator. For example, for a game set in icy conditions, you could use an extra animation curve to control the emission rate of a particle system to show the player’s condensing breath in the cold air. More info
See in Glossary
and blending. The Legacy Animation system can provide better performance for simpler animations with few animation curves, such as simple UI(User Interface) Allows a user to interact with your application. Unity currently supports three UI systems. More info
See in Glossary
animations. You can use both systems in your project.

Unity’s animation system provides the following features:

  • Easy workflow and setup of animations for all elements of Unity including objects, characters, and properties.
  • Support for imported animation clips and animation created within Unity
  • Humanoid animationAn animation using humanoid skeletons. Humanoid models generally have the same basic structure, representing the major articulate parts of the body, head and limbs. This makes it easy to map animations from one humanoid skeleton to another, allowing retargeting and inverse kinematics. More info
    See in Glossary
    retargetingApplying animations created for one model to another. More info
    See in Glossary
    - the ability to apply animations from one character model onto another.
  • Simplified workflow for aligning animation clips.
  • Convenient preview of animation clips, transitions and interactions between them. This allows animators to work more independently of programmers, prototype and preview their animations before gameplay code is hooked in.
  • Management of complex interactions between animations with a visual programming tool.
  • Animating different body parts with different logic.
  • Layering and masking features
Unity - Manual: Animation system overview (1)

Animation workflow

Unity’s animation system is based on the concept of 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
, which contain information about how certain objects should change their position, rotation, or other properties over time. Each clip can be thought of as a single linear recording. Animation clips from external sources are created by artists or animators with 3rd party tools such as Autodesk® 3ds Max® or Autodesk® Maya®, or come from motion capture studios or other sources.

Animation Clips are then organised into a structured flowchart-like system called 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 info
See in Glossary
. The Animator Controller acts as a “State MachineThe set of states in an Animator Controller that a character or animated GameObject can be in, along with a set of transitions between those states and a variable to remember the current state. The states available will depend on the type of gameplay, but typical states include things like idling, walking, running and jumping. More info
See in Glossary
” which keeps track of which clip should currently be playing, and when the animations should change or blend together.

A very simple Animator Controller might only contain one or two clips, for example to control a powerup spinning and bouncing, or to animate a door opening and closing at the correct time. A more advanced Animator Controller might contain dozens of humanoid animations for all the main character’s actions, and might blend between multiple clips at the same time to provide a fluid motion as the player moves around the sceneA Scene contains the environments and menus of your game. Think of each unique Scene file as a unique level. In each Scene, you place your environments, obstacles, and decorations, essentially designing and building your game in pieces. More info
See in Glossary
.

Unity’s Animation system also has numerous special features for handling humanoid characters which give you the ability to retarget humanoid animation from any source (for example: motion capture; the Asset Store; or some other third-party animation library) to your own character model, as well as adjusting muscle definitionsThis allows you to have more intuitive control over the character’s skeleton. When an Avatar is in place, the Animation system works in muscle space, which is more intuitive than bone space. More info
See in Glossary
. These special features are enabled by Unity’s AvatarAn interface for retargeting animation from one rig to another. More info
See in Glossary
system, where humanoid characters are mapped to a common internal format.

Each of these pieces - the Animation Clips, the Animator Controller, and the Avatar, are brought together on a GameObjectThe fundamental object in Unity scenes, which can represent characters, props, scenery, cameras, waypoints, and more. A GameObject’s functionality is defined by the Components attached to it. More info
See in Glossary
via the Animator Component. This component has a reference to an Animator Controller, and (if required) the Avatar for this model. The Animator Controller, in turn, contains the references to the Animation Clips it uses.

Unity - Manual: Animation system overview (2)

The above diagram shows the following:

  1. Animation clips are imported from an external source or created within Unity. In this example, they are imported motion captured humanoid animations.
  2. The animation clips are placed and arranged in an Animator Controller. This shows a view of an Animator Controller in the Animator window. The States (which may represent animations or nested sub-state machines) appear as nodes connected by lines. This Animator Controller exists as an asset in the Project windowA window that shows the contents of your Assets folder (Project tab) More info
    See in Glossary
    .
  3. The rigged character model (in this case, the astronaut “Astrella”) has a specific configuration of bones which are mapped to Unity’s common Avatar format. This mapping is stored as an Avatar asset as part of the imported character model, and also appears in the Project window as shown.
  4. When animating the character model, it has an Animator component attached. In the InspectorA Unity window that displays information about the currently selected GameObject, asset or project settings, allowing you to inspect and edit the values. More info
    See in Glossary
    view shown above, you can see the Animator Component which has both the Animator Controller and the Avatar assigned. The animator uses these together to animate the model. The Avatar reference is only necessary when animating a humanoid character. For other types of animation, only an Animator Controller is required.

Unity’s animation system comes with a lot of concepts and terminology. If at any point, you need to find out what something means, go to our Animation Glossary.

Animation

Rotation in animations

Unity - Manual: Animation system overview (2024)

References

Top Articles
Polynomial curve fitting - MATLAB polyfit
Natuurkunde.nl - Van v,t naar x,t
Blorg Body Pillow
Craigslist Pets Longview Tx
Garrison Blacksmith Bench
Ati Capstone Orientation Video Quiz
Costco The Dalles Or
Back to basics: Understanding the carburetor and fixing it yourself - Hagerty Media
Umn Biology
Crusader Kings 3 Workshop
OSRS Dryness Calculator - GEGCalculators
Ts Lillydoll
Colts Snap Counts
Craigslist Farm And Garden Tallahassee Florida
Conscious Cloud Dispensary Photos
Best Nail Salon Rome Ga
Swgoh Turn Meter Reduction Teams
Trivago Sf
Governor Brown Signs Legislation Supporting California Legislative Women's Caucus Priorities
Bill Remini Obituary
Wat is een hickmann?
Mynahealthcare Login
Joann Fabrics Lexington Sc
Striffler-Hamby Mortuary - Phenix City Obituaries
Shoe Station Store Locator
Solo Player Level 2K23
Armor Crushing Weapon Crossword Clue
'Conan Exiles' 3.0 Guide: How To Unlock Spells And Sorcery
Swgoh Boba Fett Counter
Bus Dublin : guide complet, tarifs et infos pratiques en 2024 !
Envy Nails Snoqualmie
Hattie Bartons Brownie Recipe
Quake Awakening Fragments
Today's Gas Price At Buc-Ee's
2008 DODGE RAM diesel for sale - Gladstone, OR - craigslist
Koninklijk Theater Tuschinski
1v1.LOL Game [Unblocked] | Play Online
Anderson Tribute Center Hood River
Amc.santa Anita
Marcal Paper Products - Nassau Paper Company Ltd. -
Bmp 202 Blue Round Pill
American Bully Puppies for Sale | Lancaster Puppies
Human Resources / Payroll Information
St Anthony Hospital Crown Point Visiting Hours
Whitney Wisconsin 2022
Devotion Showtimes Near Showplace Icon At Valley Fair
Boyfriends Extra Chapter 6
Ouhsc Qualtrics
Waco.craigslist
9294027542
Oefenpakket & Hoorcolleges Diagnostiek | WorldSupporter
Latest Posts
Article information

Author: Fredrick Kertzmann

Last Updated:

Views: 5877

Rating: 4.6 / 5 (46 voted)

Reviews: 85% of readers found this page helpful

Author information

Name: Fredrick Kertzmann

Birthday: 2000-04-29

Address: Apt. 203 613 Huels Gateway, Ralphtown, LA 40204

Phone: +2135150832870

Job: Regional Design Producer

Hobby: Nordic skating, Lacemaking, Mountain biking, Rowing, Gardening, Water sports, role-playing games

Introduction: My name is Fredrick Kertzmann, I am a gleaming, encouraging, inexpensive, thankful, tender, quaint, precious person who loves writing and wants to share my knowledge and understanding with you.