In 5.6 How to track loading, show downloaded bytes?

prior to 5.6 UnityProgress would be setup to include:

this.SetProgress = function (progress) {

etc.

Now in 5.6 it appears all of the functionality to track loading has been changed and we’re expected to write functions for each event. How do we replicate the missing(?) functionality? SetMessage (which would get xxx/yyy download numbers) and Clear (which would let us know when to hide the loading UI) specifically.

I’m guessing something can be added to the instantiate call:

UnityLoader.instantiate("game", "Build/webGLEvolved.json", {onProgress: UnityProgress}

But can’t find any documentation for what other events might be available. Help!

You can find a sample of onRuntimeInitialized at New Unity WebGL Embedding API White Paper - Unity Engine - Unity Discussions

I am using this to hide the progress bar instead of when progress is 1 as this would mean an user will look at a blue backgroundcolor until initialization of the game is done.

This seems like a backwards step - suggesting we send a string into a function that normally handles floats via overloading an as yet completely undocumented instantiate … feels like an ugly hack to replace previous functionality.

Edit - this also doesn’t show bytes, just a % complete.