Interface

ScaleComp

:

The scale component.

group Component Types

scale

: Vec2

The current scale of the object

returns The current scale of the object as a

scaleTo

(s: number): void

Set the scale of the object to a number

scaleTo

(s: Vec2): void

Set the scale of the object to a Vec2

scaleTo

(sx: number, sy: number): void

Set the scale of the object to a number for x and y

scaleBy

(s: number): void

Scale the object by a number

scaleBy

(s: Vec2): void

Scale the object by a Vec2

scaleBy

(sx: number, sy: number): void

Scale the object by a number for x and y

kaplay logo

Layer

Miscalenous