Version: 2022.3
Language : English
Build your WebGL application
Recommended Graphics settings to optimize your WebGL build

Optimize your WebGL build

It’s important to optimize your WebGL build because Web-based applications perform best when you have a small build. A small build means there’s less data to download during initialization, which reduces load times. Slow load times can result in poor user experience and a high bounce rate.

Use these recommendations to make optimizations specific to Unity WebGL platform.

Topic Description
Recommended Graphics settings to optimize your WebGL build Change the Graphics settings to create an optimized WebGL build.
Recommended Quality settings to optimize your WebGL build Change the Quality settings to create an optimized WebGL build.
Recommended Player settings to optimize your WebGL build Change the Player settingsSettings that let you set various player-specific options for the final game built by Unity. More info
See in Glossary
to create an optimized WebGL build.
Use C# code to enable optimization settings Use a C# script to enable some of the optimization settings.
Remove unused resources from your WebGL build Remove unused packages and shaderA program that runs on the GPU. More info
See in Glossary
variants from your build.

Additional resources

  • 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

  • WebGL browser compatibility

  • WebGL templates

Build your WebGL application
Recommended Graphics settings to optimize your WebGL build