Skip to content

format

typescript
Bounds.size

class: Bounds

description

The size of the bounding box.

parameter

param_nametypedescription

reture

typedescription
Vector3The 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