[No coding] Creating Simple Animations

Information
Step 1
In this lesson we are going to learn how to animate objects so they can move automatically!
Ezgif.com video to gif %287%29
Step 2
Create a new scene or stay on the current scene/project if you have Unity opened.
Temp1544439036
Step 3
Right click Hierarchy, create a 3D Sphere.
Step 4
Select the Sphere, near the bottom left there are 3 tabs: Project, Console, and Animation, click animation.
Temp1544467944
Information
Step 5
If the animation tab is not there, click this button near the button right, Add Tab, and add Animation.
Temp1544468135
Step 6
Click Create, save this anim file in your assets folder, it can be any name.
Temp1544468251
Step 7
In the animator, here's a brief explanation for the tools, buttons, and windows.
Temp1544468820
Planning
Step 8
Task: Move the sphere left and right every 1 second
Temp1544469366
Planning
Step 9
Our current window only shows up to 1 second, we need to expand this window so that it shows more time.
Temp1544469615
Step 10
Use the mouse wheel and scroll up/down to expand and shrink the timeline until you see 2 seconds.
Planning
Step 11
We are going to make Key frames on where and when it will be.
Temp1544469871
Step 12
Make sure sphere is selected, Click add property, this will create 2 keyframes. One at 0sec and one at 1sec.
Information
Step 13
If you notice, go to the inspector (on the right of screen) to see that position is lit red.
Temp1544470252

This means that you're currently animating it's position. And this is the current position for that frame.

Step 14
Click on 0 seconds, make sure all position is at 0, click on 1 second, change x to 5
Temp1544470515
Check Your Work
Step 15
Try clicking and dragging across the timeline to see the movement.
Check Your Work
Step 16
You can also click play to test this animation.
Temp1544470788

As the sphere is moving after you press Play, you can see that X position of that sphere is constantly going from 0 to 5 repeatedly.

Planning
Step 17
Okay! Now that we have it moving forward one time, we need to make it move back to position 0.
Temp1544471117
Step 18
We can just select first keyframe, CTRL+C to copy, move to 2 seconds keyframe, CTRL+V to paste.
Check Your Work
Step 19
Time to click play(on animation tab) to see our result!
Information
Step 20
We can change more things than just position when animating!
Temp1544471726
Challenge
Step 21
Using what you learned, Try adding another property for scale, And enlarge the scale when it travels!
Temp1544471857
Challenge
Step 22
OPTIONAL: Can you make this sphere travel in a triangular formation?
Temp1544472004
Step 23
You're done! Let's click submit and move onto Part 4 in editing Shaders!
[No coding] Creating Simple Animations Info

Account

MVCode Clubs

Created By

Nepgear tina (instructor)

Course:

[No coding] Unity Basics

Access Level

public

For Teachers and Schools

Teach coding to your students with MVCode Teach

MVCode offers an integrated product designed to teach coding to students.

Learn more about MVCode Teach