Unity Games Avoid Borders Setting
I' just hit the update button in accident and this old post seems come to the top of my flow. I must claim that I have switched to godot, and I'm waiting the new function in godot 4.3 which alows me to embed game in ld page. if you know how to embed game from 4.2 please tell me.
It took me some time to work out how to upload the unity game so that it embeds correctly without border.
I've noticed that some unity authors face same problems, so I write this to show you how to do.
Step1
Select the minimized template
In Edit/ProjectSetting/WebGL Setting
And make sure the canvas size is less than 948*533

Step2
After the build, make edits to Index.html
Step2.1
The problem that lead to the bord is that < body > has a default margin
Add "margin:0px" to body.style
Step2.2
If the size of your game is exactly 948x533
then body will produce a scrollbar that block your game
Add "overflow:hidden" to body.style
The final < body > should look like this
<body style="text-align: center;margin:0px;overflow:hidden">



Even though I can only sketch simple outlines right now, each Ludum Dare helps me improve. Thanks to Ludum Dare and everyone involved. hopping to create something truly fun to play this time.let's go!!






