Skip to main content

Function: addScaleComponent()

addScaleComponent(world, entity, options?): ScaleEcsComponent

Defined in: common/components/scale-component.ts:22

Attaches a ScaleEcsComponent to entity.

Parameters

world

EcsWorld

The ECS world entity belongs to.

entity

number

The entity to attach the component to.

options?

Partial<ScaleEcsComponent> = {}

Options for configuring the scale.

Returns

ScaleEcsComponent

The attached component, for further tuning or runtime changes.