Dad72 Posted October 28, 2016 Share Posted October 28, 2016 Hi, I can not find progressCallBack for assetManager. I want to load several tasks and have a progress bar for the entire meshes (tasks) to load. I see that there is the callback: assetManager.onFinish () assetManager.onTaskSuccess () assetManager.onTaskError() But I think he misses : assetManager.progressCallBack () => This would help me a lot. How this can be done if it already exists? Thanks Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted October 28, 2016 Share Posted October 28, 2016 Hey I guess we discussed this before. There is no good way to do it right now but you can use a setTimeout and check assetsManager.waitingTasksCount Quote Link to comment Share on other sites More sharing options...
Dad72 Posted October 29, 2016 Author Share Posted October 29, 2016 Thanks for the waitingTasksCount. I had not seen it. It might work. I'll try tomorrow. But this is not something that can be added to AssetManager (I mean the progressCallBack)? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted October 29, 2016 Share Posted October 29, 2016 Let me know if it work..Then we will add it Quote Link to comment Share on other sites More sharing options...
Dad72 Posted October 29, 2016 Author Share Posted October 29, 2016 Okay. I hope it will work. Thank you again DK Quote Link to comment Share on other sites More sharing options...
Dad72 Posted October 29, 2016 Author Share Posted October 29, 2016 I try in the playground: assetsManager.waitingTasksCount But it returns me 0. Is this returns the amount of stain to do. If there is only one model charge, should not it return 1 instead of 0? http://www.babylonjs-playground.com/#ZJYNY#1 Maybe I not use correctly Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted October 31, 2016 Share Posted October 31, 2016 Fixed http://www.babylonjs-playground.com/#ZJYNY#4 Quote Link to comment Share on other sites More sharing options...
Dad72 Posted October 31, 2016 Author Share Posted October 31, 2016 Cool, Thanks. 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.