Version: Unity 6 Beta (6000.0)
Language : English
Recommended Player settings to optimize your Web build
Use C# code to enable optimization settings

Recommended Quality settings to optimize your Web build

Use the following recommended Quality settings to optimize your builds for the Unity Web platform.

Configure the following recommended settings in Edit > Project Settings > Quality. For more information on these settings, refer to Quality.

Quality Level

The Quality settings contain a group of possible Quality Levels for your build. If you set your Quality Level to a lower setting (Very Low or Low), it results in faster load times and better performance which is recommended for a Web application. However, lower quality can mean the visuals don’t look as good.

For more information about this setting, refer to Quality.

Change the Quality Level via C# code

To change the Quality Level via script instead, add this code to one of your scriptsA piece of code that allows you to create your own Components, trigger game events, modify Component properties over time and respond to user input in any way you like. More info
See in Glossary
:

QualitySettings.SetQualityLevel(0, true); // Use the index of your quality settings matrix (0 = Very Low, 1 =  Low). 

Additional resources

Recommended Player settings to optimize your Web build
Use C# code to enable optimization settings
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961