0
0
Unityframework~5 mins

Transform component (position, rotation, scale) in Unity - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
Atransform.rotation
Btransform.localScale
Ctransform.position
Dtransform.eulerAngles
What type of value is transform.rotation in Unity?
AQuaternion
BVector3
Cfloat
DMatrix4x4
If you want to double the size of a GameObject, which property should you change?
Atransform.position
Btransform.rotation
Ctransform.localPosition
Dtransform.localScale
What does transform.eulerAngles represent?
APosition in world space
BRotation in degrees around each axis
CScale relative to parent
DLocal position relative to parent
Which property gives the position of a GameObject relative to its parent?
Atransform.localPosition
Btransform.position
Ctransform.localScale
Dtransform.rotation
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.