diff --git a/packages/assets/src/AssetManager.ts b/packages/assets/src/AssetManager.ts index 4d2b40fb..6ceccfdd 100644 --- a/packages/assets/src/AssetManager.ts +++ b/packages/assets/src/AssetManager.ts @@ -78,9 +78,15 @@ export class AssetManager implements IAssetManager { if(!url || !url.length) return null; + let texture = this.getTexture(name); + + if(!texture) texture = this.getTexture(url); + + if(texture) return texture; + try { - const texture = await Assets.load(url); + texture = await Assets.load(url); if(!texture) return null;