Skip to content

@modoki/engine / index / buildEntityIndex

Function: buildEntityIndex()

buildEntityIndex(world): EntityIndex

Build a one-shot index of the world's entities by id + name-keyed children. A single EntityAttributes query; build ONCE per frame and pass it to every applyClipAtTime call so N animators cost O(N + entities), not O(N × entities).

Parameters

world

World

Returns

EntityIndex

Built with Modoki.