文档

支持

Unity Studio

Open Unity Studio

Unity Studio

Transform component

Change the location, rotation, and scale of your GameObject.
阅读时间1 分钟最后更新于 2 个月前

Every GameObject has a Transform component by default.

Transform component properties

Change the values of this component to update the object's position, rotation, or size.
提示
Click and drag the values to change them gradually.

Property

Description

PositionSet or retrieve the object's location in 3D world space (X, Y, Z).
RotationSet or retrieve the object's rotation around the X, Y, and Z axes (degrees).
ScaleUse the X, Y, and Z values to change or retrieve the object's size.

Additional resources


Transform component • Unity Studio • Unity Docs