transform.Translate 1.function Translate (translation : Vector3, relativeTo : Space = Space.Self) : void) Move the unit/second. //沿着z轴1单位/秒,向前移动物体 transform.Translate(Vector3.forward * Time.deltaTime); // Move the object upward in world space 1 unit/
function Translate (translation : Vector3, relativeTo : Space = Space.Self) : void Description描述 Moves the transform in the direction and distance of translation. 移动transform在translation的方向和距离. 简单的说,向某方向移动物体多少距离. If relativeTo is left out or set to S