Skip to main content

Function: addAnimationComponent()

addAnimationComponent(world, entity, options?): AnimationEcsComponent

Defined in: animations/components/animation-component.ts:112

Attaches a AnimationEcsComponent to entity.

Parameters​

world​

EcsWorld

The ECS world entity belongs to.

entity​

number

The entity to attach the component to.

options?​

Partial<AnimationEcsComponent> = {}

Options for configuring the animation.

Returns​

AnimationEcsComponent

The attached component, for further tuning or runtime changes.