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
BasicMaterial assets. It inherits Assets behavior,
including Assets#add and Assets#get, for storing and
resolving material handles. RenderCorePlugin registers the pool
for access through world.getResource and BasicMaterialAssets.
import { BasicMaterialAssets } from '@wimaengine/render-core'
function lookupMaterial(world, materialHandle) {
const materials = world.getResource(BasicMaterialAssets)
return materials.get(materialHandle)
}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.