Unity WebGL Build issues. PLEASE HELP

Started by
1 comment, last by Geri 1 year, 1 month ago

I am assisting to build a demo game that is meant to be played on a web browser both on a computer and android. It was originally meant for Android and I added a simple feature to allow keyboard presses. It will build locally on my computer and plays just fine as a standalone computer application. However, when I build it as a WebGL application it will open in a browser but the game's screen is too large and doesn't allow me to interact with the screen (which is a new issue).

I'm using Unity version 2020.3.45f1 to build this project.

If there's anything I'm forgetting to mention please let me know and I will add more screenshots.

r/Unity3D - Trying to build a WebGL app from an Android game

These are my resolution settings

r/Unity3D - Trying to build a WebGL app from an Android game

Player Rendering settings

![img](b9jezvzkzjma1 "This is what it looks like in browser after uploading .html file

")

r/Unity3D - Trying to build a WebGL app from an Android game

This is what it looks like when I get it to build locally in browser. The screen is going out of bounds. Ignore the pink scribbles.

r/Unity3D - Trying to build a WebGL app from an Android game

This is what the screen should look like.

r/Unity3D - Trying to build a WebGL app from an Android game

This is the error I receive when I try to login to the game.

Advertisement

Forget this clownery, and learn javascript if you want to get from 1 to 2. Also you can observe the error in the browser log instead.

This topic is closed to new replies.

Advertisement