preloadScene Progress (downloading Progress)

preloadScene Progress (downloading Progress)

Am making fb instant game and when i upload it to fb it take a lot of time to preloadScene when i opened chrome console network tab i found it downloading resources i wonders is there is anyway to know the progress of downloading resources.

Yes, it has.
You can refer to the preloadScene function in CCDirector.js in the engine source code.

if you are using loadRes, there should be an function argument “progressCallback” which takes completedCount and totalCount for calculating progress
otherwise you can use the “completeCallback” and a self-defined counter to perform similar job