getScale

Returns a Vector3 with the scale of an Object.

getScale(
	objectName: string
): Promise<Vector3>
Parameters
Description
Type

objectName

Specifies what object do we want to retrieve the information from.

string

Usage:

await modelApi.init();

Return value:

{
	x: 1,
	y: 1,
	z: 1,
}

Last updated