Lesson 5
The Transform: where, turn and size
Every GameObject has a Transform. It says where it is, how much it turns, and how big it is.
Draft lesson: nobody has followed it from start to finish in the editor yet, so a step may not match what you see.
Video coming soon
We are making a video for this lesson. For now, follow the steps below!
In this lesson you will
- Find the Transform in the Inspector
- Change position, rotation and scale
- Know which way Y goes
Every GameObject has one
Click a GameObject. At the top of the Inspector, you see its Transform.
| Setting | What it means |
|---|---|
| Position | Where it is. X goes left and right. Y goes up and down |
| Rotation | How much it turns |
| Scale | How big it is. 1 is normal. 2 is twice as big |
Up is minus!
Here, Y gets bigger going down. To move something up, make Y smaller.
Move it with the mouse
Click the Move tool in the toolbar. Then drag your GameObject in the Game panel. Look: the Position numbers change!
Try this
- Set Scale X and Y to
2. Then try0.5. - Change Rotation. Which way does it turn?
- Make Position Y smaller. Did it go up?
Try it here
Your mission
Change Position, Rotation and Scale, and watch the sprite change.
Soon, a small piece of the editor will be right here, so you can practise without leaving the lesson. For now, try it in the editor!