Animation Component

The Animation Component plays back the animations for your character. You can assign multiple animations created within Unity to your GameObject with an Animation Component, which can then be played back through scripting. Let’s look at the properties of the Animation Component:

Image Animation: The default animation to be played.

Image Animations: An array of animations that can be assigned to the GameObject and then played back.

Image Play Automatically: ...

Get Learning 2D Game Development with Unity®: A Hands-On Guide to Game Creation now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.