setting default res for HTML
Hi, I'm packaging my game for HTML export, but I can't set the default resolution of the game. Each time it loads, it takes the entire width of the browser as the default width, with a creepy pixelized resolution.
I've tried a r.SetRes 800x600w command line, also changed some .ini but with no results. From editor, it works fine, but not when packaged for html.
Does anybody know the way to go ? Thanks a lot !
asked Feb 25 '16 at 12:37 PM in Packaging & Deployment
Do the following. Go into the UE4 folder. Open the \Engine\Build\HTML5\Game.html.template in notepad.
Decrease the parameter WIDTH as you need.
answered Feb 26 '16 at 01:17 PM
For those who are still stuck with game resolution, I'm sharing here how I fixed the problem:
(to make the compress game working, I had to add "gz" at the end of the line "AddType application/octet-stream .data" in the .htaccess)
Engine version used : 4.21.2
answered May 27 '19 at 11:31 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here