Version: 2017.3 (switch to 2017.4)
Using Components
Creating components with scripting
Other Versions

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.
Rotation Rotation of the Transform around the X, Y, and Z axes, measured in degrees.
Scale Scale of the Transform along X, Y, and Z axes. Value “1” is the original size (size at which the object was imported).

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.

对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答