Studio

scale(...)

scale(val : number[]) : this;

Sets the scale of the node.

Default value: [1, 1, 1]

Parameters

Parameter Type Description
val number[] The value to set the scale to, in the following form: [x, y, z].

Returns

this

Example

myobject.scale([0.5, 0.5, 0.5]);
// myobject is now half the size
Open in new window