Time to move!

Now, we are ready to animate the two objects we have in our scene. Let's look at the steps required to animate the two objects:

  1. Select LeftRect in the Hierarchy view.
  2. Click on the Create button in the Animation pane.
  3. When the Create New Animation window pops up, create a folder called Animations, name the file LeftRectIdle.anim, and click on Save.
  4. Repeat steps 1-3, substituting the object name with RightRect.

This will be the idle position for the object. The idle animation does not need anything to be changed. Now, we will make the animation we need to transition to:

  1. With LeftRect still selected, click on the bar that says LeftRectIdle in the Animation window.
  2. Click on the Create New Clip option.
  3. Navigate to the Animation folder, and save the file as LeftRectMove.Anim.
  4. Click on the Add Property button; a list of components that can be animated will appear.
  5. Click on the arrow next to Transform:
  1. Click on the plus symbol corresponding to Position.
  2. Now, repeat steps 1-6, substituting the object and animation names with RightRect.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.119.133.228