Building Time — Build Your Game for Browsers

Objective: Build your game for WebGL

WebGL is a graphic library that allows the rendering of 3D content in an HTML page. It is possible to build a Unity project and make it playable on browsers, through a WebGL build.

In the Build Settings window select WebGL as platform (you should have chosen this option wile installing Unity Editor). Some options are available, for example you can select Development Build for some debugging.

The build button is not yet available: you first have to switch platform!

You can also see a warning concerning the colour space: you have to switch back to linear if the current is gamma.

Once switched to WebGL platform, everything is recompiled and the build button is accessible again. You can now build.

The output is playable through the index.html file, but if you try to open it that’s the result:

This is because you’re going to need a web server to run your WebGL. You can either start a web server or use the Build and Run option to let Unity do it ;) .

--

--

--

A professional developer with passion for game developing and skill-growing. A former Nuclear Physics Researcher who changed his life to pursue his dreams

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How to Configure Reverse Proxy server using Ansible?

A basic developer workflow with Docker-EE

These doctors don’t know what they’re doing

Error handling with Scala Futures

Geocities and Neopets didn’t teach us HTML and CSS

Examples of Geocities Pages

My Google Front End Interview Questions

Mobile-Based Matching: An ORIGYN Foundation Technology Update

Making IoT Projects Scalable with Kubernetes — A Raspberry Pi Tutorial

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Daniele Quero, PhD

Daniele Quero, PhD

A professional developer with passion for game developing and skill-growing. A former Nuclear Physics Researcher who changed his life to pursue his dreams

More from Medium

CS 371P Spring 2022: Entry 2

Part 4 :Benefits of Blockchain in Agriculture & Food Supply Chain

How To Warm Up a Domain Before Email Outreach — RC-Educate

Guide: Creating NFTs with the new NeftyBlocks CREATE feature