Version: 2021.3
Language : English
WebGL prerequisites
WebGL Player settings

WebGL development

This section provides information required to develop apps that are suitable for WebGLA JavaScript API that renders 2D and 3D graphics in a web browser. The Unity WebGL build option allows Unity to publish content as JavaScript programs which use HTML5 technologies and the WebGL rendering API to run Unity content in a web browser. More info
See in Glossary
. It includes information that you might want to consider before you begin to develop on WebGL.

A 3D Room Designer’s frontend built-in native HTML and JavaScript communicates with the Unity WebGL Player through external Javascript calls
A 3D Room Designer’s frontend built-in native HTML and JavaScript communicates with the Unity WebGL Player through external Javascript calls

This section covers the following WebGL topics:

Page Description
WebGL Player settings Refer to the UI(User Interface) Allows a user to interact with your application. Unity currently supports three UI systems. More info
See in Glossary
description of WebGL Player settingsSettings that let you set various player-specific options for the final game built by Unity. More info
See in Glossary
.
Interaction with browser scripting The different methods used for browser scripting in WebGL.
WebGL Native plug-ins for Emscripten WebGL native plug-insA set of code created outside of Unity that creates functionality in Unity. There are two kinds of plug-ins you can use in Unity: Managed plug-ins (managed .NET assemblies created with tools like Visual Studio) and Native plug-ins (platform-specific native code libraries). More info
See in Glossary
for Emscripten.
Memory in WebGL How to manage memory in WebGL.
WebGL graphics How to use the WebGL Graphics API.
Audio in WebGL Information about audio capabilities in WebGL.
Embedded resources on WebGL Information about embedded resources in WebGL.
Input in WebGL The various input types that Unity WebGL supports.
Configure a WebGL Canvas size Configure the visible size of the WebGL canvas element.
WebGL networking How to use networkingThe Unity system that enables multiplayer gaming across a computer network. More info
See in Glossary
in WebGL.
Cursor locking and full-screen mode in WebGL Cursor locking and full-screen mode support in WebGL.
WebGL performance considerations WebGL performance considerations.
Debug and troubleshoot WebGL builds Debug and troubleshoot WebGL builds.

Additional resources

WebGL prerequisites
WebGL Player settings