Unable to add custom loading GIF

Hi,

We need to add custom loading GIF by replacing traditional babylonjs loading icon
We tried with the code snippet but it was not working
I even refered to this post but no luck…

Pls suggest the way forward

Thanks
vii

Take a look at Creating Custom Loading Screens | Babylon.js Documentation

2 Likes

Hi Vinc,
In yur link there is no option to add the parameter .gif file as loading image.

I tried with the below syntax but its not working. pls suggest

this._loadingDiv.backgroundImage = "url('https://www.extreme-endeavors.com/loading.gif')";

Works here: https://playground.babylonjs.com/#5Y2GIC#352
Note that in Playground, after writing your code, you not only have to save the PG but also force a reload to see the update in the html content.

2 Likes

Hello @vijay_krishna just checking in if you’re still having an issue

1 Like

sorry i forgot to update here…

its woking now

2 Likes