constructor(type: object)
View sourceCreates a typed asset pool for values identified by type.
The supplied constructor is retained as the asset family’s type identity for handles and resource access.
Class
ExtendsAssets
Typed resource alias for the shared Assets pool of Mesh
assets. It inherits Assets behavior, including Assets#add
and Assets#get, for storing and resolving mesh handles.
RenderCorePlugin registers the pool for access through
world.getResource and MeshAssets.
import { MeshAssets } from '@wimaengine/render-core'
function lookupMesh(world, meshHandle) {
const meshes = world.getResource(MeshAssets)
return meshes.get(meshHandle)
}constructor(type: object)Creates a typed asset pool for values identified by type.
The supplied constructor is retained as the asset family’s type identity for handles and resource access.