Delay onSuccess of sceneLoader

I read the answer somewhere the other day I think, but now I can’t figure out where i read it so here we go :woozy_face:

How do i get onSuccess to trigger later, like after shader sompilation and everything is ready to go. This is for my initial load so I got a custom loading screen going, but it disapears before my scene is ready to be displayed and only shows the default background.


the best option is to run your code inside scene.executeWhenReady(func)

I think that was the call I saw the other day, will try that. Thanks Deltakosh

1 Like