Recall & Review
beginner
What does the Transform component control in a Unity GameObject?
The Transform component controls the position, rotation, and scale of a GameObject in the 3D or 2D space.
Click to reveal answer
beginner
How do you access the position of a GameObject in a script?
You access it using
transform.position, which returns a Vector3 representing the GameObject's position in world space.Click to reveal answer
intermediate
What is the difference between
transform.rotation and transform.eulerAngles?transform.rotation is a Quaternion representing rotation, while transform.eulerAngles gives the rotation in degrees around each axis, which is easier to understand and edit.Click to reveal answer
beginner
How does changing
transform.localScale affect a GameObject?Changing
transform.localScale changes the size of the GameObject relative to its original size and parent scale.Click to reveal answer
intermediate
Why is it important to understand the difference between local and world space in Transform?
Because
transform.position is in world space, while transform.localPosition is relative to the parent GameObject. This affects how objects move and rotate in a hierarchy.Click to reveal answer
Which property would you use to move a GameObject to a new position in the scene?
✗ Incorrect
transform.position sets the GameObject's position in world space.
What type of value is
transform.rotation in Unity?✗ Incorrect
transform.rotation is a Quaternion representing rotation.If you want to double the size of a GameObject, which property should you change?
✗ Incorrect
transform.localScale controls the size of the GameObject.What does
transform.eulerAngles represent?✗ Incorrect
transform.eulerAngles gives rotation in degrees around X, Y, and Z axes.Which property gives the position of a GameObject relative to its parent?
✗ Incorrect
transform.localPosition is the position relative to the parent GameObject.Explain how the Transform component controls a GameObject's position, rotation, and scale in Unity.
Think about how you move, turn, and resize things in real life.
You got /4 concepts.
Describe the difference between
transform.position and transform.localPosition.Imagine moving a toy on a table versus moving the table itself.
You got /4 concepts.