# Two-dimensional animation development and use

This chapter mainly introduces how to use the animation editing tool of the tool to develop a two-dimensional animationClip and use the timeline animation.

# Animation effect

aniamtionGif

# Create a scene

  1. Construct a two-dimensional scene with animations to be performed.

# Create AniamtionClip

  1. Right-click to create a new AnimationClip resource. aniamtionClip

# Add Aniamtion component

  1. Click the node that needs to be animated, and add the Animation component.
  2. Select the AnimationClip created earlier. aniamtion

# Edit AniamtionClip

  1. Create a new Animation panel (click the three dots on the right side of Tab to add)
  2. Click AnimationClip of the Animation component, and the Animation panel will display the current AnimationClip.
  3. Add Property in the Animation panel, add properties that need to be edited, And add a keyFrame to the timeline on the right, and edit the attribute values ​​of the desired animation.
  4. After editing, click AnimationClip and select the desired animation mode in the Inspector panel. animationEditor
点击咨询小助手