How to determine if a texture has loaded?

Hi folks,

I’m trying to find a way to raise an event when all of the textures of a particular model have loaded. It seems the isReady and and isReadyOrNotBlocking can return true even if the texture hasn’t finished retrieving over the network.

Is there a way to determine that the textures have fetched/finished rendering?

Thanks!

I think you have a onLoad callback in the constructor

I don’t think I have access to the asset constructors when loading via plugin. These models will be mostly GLB / GLTF.

Did just notice that BaseTexture has this static method, so I’ll give this a try perhaps:
WhenAllReady(textures: BaseTexture[], callback: () => void)

This is a good option actually :slight_smile: