Before uploading, make sure the game is ready to build.
Open your Unity project.
Open File → Build Profiles (or Build Settings in older Unity versions).
Select Web or WebGL, depending on your Unity version.
If Web is not available, select Install with Unity Hub to install the Web platform support module.
Select your Web platform as the active build platform.
Create and publish WebGL builds - Unity Learn
Before building, check these settings:
Open Player Settings.
Find Resolution and Presentation.
Set the default canvas resolution to something like 1280 × 720.
Make sure your game works with a browser-based keyboard and mouse.
Check that your game starts from the correct opening scene.
For a typical student project, 1280 × 720 is a good starting point.
In Build Profiles, select Build.
Create a new folder somewhere easy to find, such as your Desktop.
Name it MyGame_WebGL.
Click Select Folder.
Wait for Unity to finish building.
Getting started with Unity Web - Unity Learn
You should now have a folder containing files similar to:
MyGame_WebGL
index.html
Build
TemplateData
StreamingAssets (if generated)
Important: Do not move individual files around. They need to remain in their original folder structure.
Unity Learn+1
This is an important step.
Open the MyGame_WebGL folder.
Select everything INSIDE that folder.
Right-click the selected files.
Choose Compress to ZIP file (Windows 11) or Send to → Compressed (zipped) folder (Windows 10).
Name the file MyGame_WebGL.zip.
Important
When you open the ZIP, index.html should be immediately visible. It should not be buried inside another folder.
How To Create a Unity Project and Upload it to Itch.io | by Eric Blanchard — Deleptual | Medium
Go to itch.io.
Click Register.
Create a free account.
Verify your email if requested.
Sign in.
Click your username and select Dashboard.
Choose Create new project.
This is where your Unity game becomes available online.
How To Create a Unity Project and Upload it to Itch.io | by Eric Blanchard — Deleptual | Medium
Fill in the project details:
Setting
What to enter
Title
Your game name
Project URL
Your chosen game address
Classification
Games
Kind of project
HTML
Pricing
No payment / Free
Then:
Find the Uploads section.
Click Upload files.
Select MyGame_WebGL.zip.
Wait for the upload to finish.
Tick This file will be played in the browser.
Set the embed dimensions to approximately 1280 × 720.
Save your project.
The HTML upload option is specifically designed for games that run directly in the browser.
itch.io
After uploading, scroll to the upload settings.
Make sure:
This file will be played in the browser is checked.
Embed in page is selected.
The game window is large enough to play comfortably.
Fullscreen button is enabled if available.
Game as both browser & downloadable? - Game Off 2020 community - itch.io
Click Save.
Give the game a proper presentation.
I recommend students include:
A game cover image.
Two or three screenshots.
A short description of the game.
Controls (WASD, mouse, spacebar, etc.).
Their names as developers.
A brief explanation of the objective.
This makes the page feel like an actual game release rather than just a school assignment.
Find the Visibility & Access section.
You will generally have options such as:
Draft — only you can see it.
Restricted/Unlisted — accessible through its link.
Public — discoverable on itch.io.
I'd suggest initially using restricted/unlisted access so you can test it.
When satisfied:
Change visibility to Public.
Save the page.
Copy the game's URL.
Open the URL in another browser or incognito window.
Test that the game loads and plays correctly.
Finished!
If made a Unity game and did a web GL build and it didn't work then try these 'fixes' ...
Open the project in Unity and click the Play button.
Does the game run normally?
Can you see the environment, characters and game objects?
Does the camera follow or show the player as expected?
If it works in Unity
We will next work on the configuration...
This is the first thing I'd investigate.
Open File → Build Profiles.
Select your WebGL platform.
Find the Scene List.
Make sure the actual game scene is included.
Make sure the correct starting scene is at the top of the list (index 0).
If necessary, use Add Open Scenes to add the scene you're currently working in.
Build and publish to web - Unity Learn
Why this matters: Your Unity Editor might be running the correct scene, while the WebGL build is launching a different scene containing only a camera and perhaps a light.
Open the scene you expect to see in the game.
Look at the Hierarchy panel.
Do you see your actual game objects?
For example:
Player
Terrain / Environment
Enemies
Lighting
Main Camera
Game objects
If you see only Main Camera and Light, you're probably building the wrong scene.
This is a particularly common mistake when a scene has been renamed or saved under a different name.
Unity Discussions+1
If the correct scene is loading, select Main Camera in the Hierarchy.
Check these settings:
Setting
What to check
Camera Enabled
Checked
GameObject Active
Checked
Culling Mask
Everything (for testing)
Target Display
Display 1
Position
Correct position for your game
Rotation
Pointing toward the game environment
WebGL supports Display 1 as its browser display target.