Version: 2022.3
Language : English
WebGL prerequisites
WebGL Player settings

WebGL development

Before you start developing apps on Unity 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
, you might want to consider reading this section.

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.
Caching in WebGL Customize the WebGL cache behavior.
WebGL graphics How to use the WebGL Graphics API.
Audio in WebGL Information about audio capabilities in WebGL.
Texture compression in WebGL Information about using texture compressionA method of storing data that reduces the amount of storage space it requires. See Texture Compression, Animation Compression, Audio Compression, Build Compression.
See in Glossary
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 browser access Manage browser authorization to access a device feature (webcam).
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
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961