format
typescript
Bounds.sizeclass: Bounds
description
The size of the bounding box.
parameter
| param_name | type | description |
|---|
reture
| type | description |
|---|---|
Vector3 | The size of the bounding box. |
code example
typescript
let bounds = new Bounds(new Vector3(1, 1, 1), new Vector3(1, 1, 1));
let size = bounds.size;// Get the size
bounds.size = new Vector3(2, 2, 2);// Set the size