fateriddle Posted November 14, 2018 Share Posted November 14, 2018 1. Since you can load meshes using ImportMeshAsync to return a promise, I wonder if it is possible to do the same for sound? I'm trying to do Promise.all([ loadAsset1, loadAsset2, loadSound, loadMusic ]).then( ... ) 2. Also It seems 360 photo dome and video also needs loading time, can you turn them into promise too? Quote Link to comment Share on other sites More sharing options...
Guest Posted November 14, 2018 Share Posted November 14, 2018 What about doing a PR? This could help the entire community And btw all loads are already asynchronous (that's the inner nature of the XHR). For isntance the sound constructor provides a readyToPlayCallback so it should not be a big deal to add a helper function on Sound class to load a sound and return a promise 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.