Function: addAnimationComponent()
addAnimationComponent(
world,entity,options?):AnimationEcsComponent
Defined in: animations/components/animation-component.ts:112
Attaches a AnimationEcsComponent to entity.
Parameters
world
The ECS world entity belongs to.
entity
number
The entity to attach the component to.
options?
Partial<AnimationEcsComponent> = {}
Options for configuring the animation.
Returns
The attached component, for further tuning or runtime changes.