@modoki/engine / index / registerAsset
Function: registerAsset()
registerAsset(
guid,path,type,texture?,modelBlocks?,hash?):void
Register an asset's guid → path mapping. Overwrites any prior entry for the guid. Also indexes the path for reverse lookup.
Parameters
guid
string
path
string
type
texture?
TextureImportSettings
modelBlocks?
atlas?
AtlasCacheBlock
audio?
AudioManifestBlock
environment?
EnvManifestBlock
font?
FontManifestBlock
model?
ModelImportSettings
modelCache?
ModelCacheInfo
postprocessor?
string
sprite?
SpriteAssetRef
hash?
string
Returns
void