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.
一個變換元件的位置,旋轉和縮放值的确定與父變換元件有關.如果變換元件沒有父對象,屬性由世界坐标系決定.