Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(2 edits)

Hello, is it possible to add percentage number on top of the loading bar? (like "10%", "11%", "12%"...)

I've tried a "ctx" method with that index.html but that didn't work, I guess I'm still not very familiar with JavaScript and html, ha ha.

https://www.w3schools.com/graphics/canvas_text.asp


(Also, thank you very much for making this~)

The canvas that's referenced in the template is managed by Unity to draw the game itself, so I wouldn't recommend using it to draw loading text. What would probably be easier and more accessible is to manually add a separate element to the page (just a div or etc, not a canvas), style it to be placed on top, and update its text in the progress handler (line reference).

(+1)

Oh, yeah that's way easier, touching the canvas just seems to break everything. 😆

I now use a div added with style="position: fixed" with width/height/margin adjustments and is working perfectly.


Thank you very much~