Skip to content

@modoki/engine / index / onModelInvalidated

Function: onModelInvalidated()

onModelInvalidated(fn): () => void

Subscribe to model-invalidation events. Returns an unsubscribe function. Renderers should remove any scene objects rendered from modelPath (or any of its baked LOD siblings, surfaced as targets) before this returns — the cache entries are dropped after every listener has run, then GPU geometry is disposed.

Parameters

fn

ModelInvalidationListener

Returns

() => void

Built with Modoki.