max123 Posted August 19, 2016 Share Posted August 19, 2016 Is there a way to gracefully handle errors in BJS? For example, I'm building a SPA, and when a user navigates to another screen too quickly (before the scene has finished loading), this very unsightly screen remains. It is impossible to get rid of without refresh, even though the rest of the SPA is still working fine. Or is there a way to stop loading the scene? Quote Link to comment Share on other sites More sharing options...
Wingnut Posted August 23, 2016 Share Posted August 23, 2016 Hi @max123, good to see you again. Sorry it has taken so long to get a response. That is a screen produced by the Babylon AssetsManager. It has some tools to shut-off the screen and be graceful. You can find its docs here, and if you want to see its source code, check here. I don't have much experience with it, but at least this gives you an onTaskError callback-function to do some tests-with. Good luck, hope this helps. Quote Link to comment Share on other sites More sharing options...
max123 Posted August 23, 2016 Author Share Posted August 23, 2016 6 hours ago, Wingnut said: Hi @max123, good to see you again. Sorry it has taken so long to get a response. That is a screen produced by the Babylon AssetsManager. It has some tools to shut-off the screen and be graceful. You can find its docs here, and if you want to see its source code, check here. I don't have much experience with it, but at least this gives you an onTaskError callback-function to do some tests-with. Good luck, hope this helps. Thanks, Wingnut, I will give it a go. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted August 25, 2016 Share Posted August 25, 2016 (limited to 10 likes a day!! So thank you Wingnut!!) Wingnut 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.