BoxCollider.size 大小


var size : Vector3

Description描述

The size of the box, measured in the object's local space.

盒碰撞器的大小,相对于物体的自身坐标。

The box size will be scaled by the transform's scale

通过transform的缩放,盒的大小将被缩放。

  • C#

  • JavaScript

还没有添加代码
// Make the box collider long//修改盒碰撞器的长collider.size = Vector3(10, 1, 1);


,