This commit is contained in:
Bill 2024-07-13 15:01:10 -04:00
parent 2b5b1fe6ab
commit d060d3f3b6

View File

@ -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<Texture>(url);
texture = await Assets.load<Texture>(url);
if(!texture) return null;