Abstract Class: AssetHandle
Base for typed asset wrappers (SpriteFrame/AudioClip/Font). Engine.Init binds the default loader so call sites don't have to thread one through. Pass an explicit loader to the subclass constructor for multi-engine setups or tests.
Extended by
Constructors
Constructor
ts
new AssetHandle(assetId, loader?): AssetHandle;Parameters
| Parameter | Type |
|---|---|
assetId | string |
loader? | IAssetLoader |
Returns
AssetHandle
Properties
| Property | Modifier | Type |
|---|---|---|
assetId | readonly | string |
Methods
GetDefaultAssetLoader()
ts
static GetDefaultAssetLoader(): IAssetLoader | null;Returns
IAssetLoader | null
isLoaded()
ts
isLoaded(): boolean;Returns
boolean
SetDefaultAssetLoader()
ts
static SetDefaultAssetLoader(loader): void;Parameters
| Parameter | Type |
|---|---|
loader | IAssetLoader | null |
Returns
void