Skip to content

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 ​

ParameterType
assetIdstring
loader?IAssetLoader

Returns ​

AssetHandle

Properties ​

PropertyModifierType
assetIdreadonlystring

Methods ​

GetDefaultAssetLoader() ​

ts
static GetDefaultAssetLoader(): IAssetLoader | null;

Returns ​

IAssetLoader | null


isLoaded() ​

ts
isLoaded(): boolean;

Returns ​

boolean


SetDefaultAssetLoader() ​

ts
static SetDefaultAssetLoader(loader): void;

Parameters ​

ParameterType
loaderIAssetLoader | null

Returns ​

void

© 2026 PlayAdGentic