天天看点

Unity3D说明文档翻译-TransformTransform

Transform

转换组件

SWITCH TO SCRIPTING

切换到脚本

The Transform component determines the Position, Rotation, and Scale of each object in the scene. Every GameObject has a Transform.

转换组件决定场景内每个对象的位置,旋转和缩放.每个游戏对象都有一个转换组件.

Properties

属性

Property:

属性

Function:

功能

Position

位置

Position of the Transform in X, Y, and Z coordinates.

改变X,Y,Z坐标轴的位置

Rotation

旋转

Rotation of the Transform around the X, Y, and Z axes, measured in degrees.

使改变绕X,Y,Z轴旋转,以角度测量

Scale

缩放

Scale of the Transform along X, Y, and Z axes. Value “1” is the original size (size at which the object was imported).

使改变沿着X,Y,Z轴缩放.”1”是原始大小(每个对象导入时的大小)

The position, rotation and scale values of a Transform are measured relative to the Transform’s parent. If the Transform has no parent, the properties are measured in world space.

一个变换组件的位置,旋转和缩放值的确定与父变换组件有关.如果变换组件没有父对象,属性由世界坐标系决定.

继续阅读