Skip to content

@modoki/engine / index / resolveMeshTemplate

Function: resolveMeshTemplate()

resolveMeshTemplate(meshRef): MeshTemplate | undefined

Resolve a mesh reference — handles legacy sprite names, *.mesh.json paths, and asset guids. For mesh assets: fetches the JSON, lazy-loads the model, returns the template. Returns undefined synchronously if not yet loaded (triggers async load in background).

Parameters

meshRef

string

Returns

MeshTemplate | undefined

Built with Modoki.