Html 5 output resolution

Hi guys,

I know there are already topics treating the subject, but it seems it doensn’t work anymore.

Previously to change the resolution of the game, I would edit the html files etc. But I’m changing things but the resolution seems to stay always the same. 800*600

The only thing i’m able to control it seems is the max-width of the canvas…

Does someone have an idea or the solution?


You can probably have a look at these threads. I haven’t tested it but should work.

and this

Hi and thanks for the help.

It seems they are “olders” method that did work but right now it’s not working for me.

I’m still stuck with the original resolution comming from unreal by default.

function preInitEmscripten(){

	// note: default is 800x600
	// and is configurable via DefaultEngine.ini [SystemSettings] r.setRes=WidthxHeight
	var width = UE_JSlib.UE_GSystemResolution_ResX();
	var height = UE_JSlib.UE_GSystemResolution_ResY();

So I also tried to change all the width and height I could find in the html.
Also tried to edit the JSlib file with notepad. and can’t make it work.

Try changing canvas width and height in the following place in html

#canvas:not([fullscreen]) {
width: 800px;
height: 600px;