Skip to main content

Function: createAnimatedProperty()

createAnimatedProperty(animatedProperty): Required<AnimatedProperty>

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

Fills in animationDefaults for any field not provided, producing a fully populated animated property ready to push onto AnimationEcsComponent.animations.

Parameters

animatedProperty

AnimatedProperty

The animated property to apply defaults to.

Returns

Required<AnimatedProperty>

The animated property with all optional fields populated.