MotionScript

@motion-script/core


@motion-script/core / prepareEffect

Function: prepareEffect()

prepareEffect(effect, tracker, width, height): void

Defined in: attributes/shape/effects/registry.ts:120

Let effect declare the assets it needs at the current frame. Mirrors prepareFill; a no-op for the effects that reference nothing, which is most of them.

Parameters

effect

SceneEffect

tracker

AssetTracker

width

number

height

number

Returns

void