How do I hide the loading screen when the texture loading is finished?

Hello. I have one problem. I want the loading screen to appear when the new texture is loaded into the scene. The loading screen opens but does not close after the texture is loaded. How can I solve this problem?

Playground example:

First thing is this texture loads just too fast on my rig so I have no chance to see the loading screen.
Second is that ā€˜onLoadObservableā€™ as its name does not suggest, actually triggers when the loading is done.

With that said, I have linked to a bigger texture and did put all into a function also adding a timeout, just to check on that loading screen. Of course, neither the function nor the timeout is necessary. Although I guess it doesnā€™t harm to have a function instead of putting everything in the button observable. Your choice in the end. Hope this helps and meanwhile, have a great day :sunglasses:


thank you. itā€™s work

1 Like