Documentation

Support

Unity Studio

Open Unity Studio

Unity Studio

Animation component reference

Change the settings of the Animation component.
Read time 1 minuteLast updated 13 days ago

The Animation component has several properties that you can configure to control how your animations behave. These options are available in the Inspector panel when you select a GameObject that has an Animation component. If your GameObject doesn't have an Animation component, refer to Animate a GameObject with the Animation component for steps on how to add one.

Animation component properties

The following properties are available in the Animation component:

Property

Description

Autoplay By default, set to None. Use Autoplay to set your animation to play automatically when your application launches. You can set multiple animations on each GameObject to autoplay.
AnimationThe animation clip to play. Select the field to locate the clip in the
My Assets
folder. Select the circle icon next to the field to change the clip. You can assign multiple animation clips to the same component, and use the same clip on multiple objects.
RecordThe circular, red, record icon. Select to open the Animation Timeline window for the selected animation, where you can edit the animation.
DeleteThe trash can icon. Select to remove the selected animation from the GameObject.
EasingChanges the speed of your animation to make the movement feel more natural.
  • Linear: Moves at a constant speed from start to finish.
  • Ease In: Starts slow and speeds up.
  • Ease Out: Starts fast and slows down.
  • Ease In Out: Starts slow, speeds up in the middle, and slows down at the end.
Playback optionsControl what happens when your animation reaches the end.
  • Once: Plays one time and stops.
  • Loop: Repeats the animation continuously.
  • Ping Pong: Plays forward, then backward, repeating this back-and-forth motion.
+Select to add a new animation to the GameObject. You can have multiple animations on each GameObject.

Additional resources