Skip to content

@modoki/engine / index / invalidateModel

Function: invalidateModel()

invalidateModel(modelPath): void

Invalidate all cached templates for a model, plus any baked LOD siblings. Call before re-import. Walks the LOD snapshot (preferred — survives manifest drift) then falls back to the asset manifest so a model with modelCache.lodPaths clears every LOD GLB's templates too.

Parameters

modelPath

string

Returns

void

Built with Modoki.