format
typescript
BoxCollider.sizeclass: BoxCollider
description
The size of the box collider.
This value represents the width, height, and depth of the box collider.
parameter
| param_name | type | description |
|---|
reture
| type | description |
|---|---|
Vector3 | The size of the box collider. |
code example
typescript
let obj = new GameObject();
let box = obj.AddComponent<BoxCollider>(BoxCollider);
box.size;