playcanvas
Version:
PlayCanvas WebGL game engine
36 lines (35 loc) • 1.1 kB
TypeScript
/**
* @import { AssetRegistry } from '../../asset/asset-registry.js'
*/
/**
* A utility class for programmatically loading and unloading gsplat resources. This class provides
* a simple interface for loading gsplat assets dynamically and manages their lifecycle, including
* keeping track of loaded assets for efficient unloading.
*
* @category Asset
* @ignore
*/
export class GSplatAssetLoader extends GSplatAssetLoaderBase {
/**
* Create a new GSplatAssetLoader.
*
* @param {AssetRegistry} registry - The asset registry to use for loading assets.
*/
constructor(registry: AssetRegistry);
/**
* Map of URL to Asset instances that this loader has created.
*
* @type {Map<string, Asset>}
* @private
*/
private _urlToAsset;
/**
* The asset registry to use for loading assets.
*
* @type {AssetRegistry}
* @private
*/
private _registry;
}
import { GSplatAssetLoaderBase } from '../../../scene/gsplat-unified/gsplat-asset-loader-base.js';
import type { AssetRegistry } from '../../asset/asset-registry.js';