Comments

Log in with itch.io to leave a comment.

Viewing most recent comments 2 to 4 of 100 · Next page · Last page
(+2)

i had an issue of the loading bar appearing for no reason when entering full screen. i added "window.focus();" to the end of onResize() which fixes it. maybe could be considered to be added to the asset :)

(3 edits) (+2)

Awesome stuff!
Also, i would consider adding this (new?) feature for saving PlayerPrefs and files:

Add "autoSyncPersistentDataPath: true" to the config={}
https://docs.unity3d.com/Manual/web-templates-build-configuration.html

Also, adding '-webkit-user-select: none; user-select: none;' to 'div#gameContainer canvas' is advised https://discussions.unity.com/t/odd-issue-with-focus-in-firefox/1651226/2 

(+2)

Thanks for the suggestions, this does seem like a better default. I've added it to the "2020.2 and higher" version.

Thank you so much for this tool. I'm wondering if there is a way to remove the black/custom bars when resizing it; for the game view to take up the entire screen in fullscreen mode.

ah i think i've solved it, for anyone else wondering: comment out these. thanks again for the great template :)

// if (w * r > window.innerHeight) {

//  w = Math.min(w, Math.ceil(h / r));

// }

//h = Math.floor(w * r);

Viewing most recent comments 2 to 4 of 100 · Next page · Last page