Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

EditorUserBuildSettings.webGLOptimizationLevel

Switch to Manual
public static var webGLOptimizationLevel: int;

Description

Optimization level for WebGL.

This is the optimization level passed to the emscripten compiler for WebGL builds (-On command line option). 1 results in slow performance but faster builds (recommended for iterating on problems). 2 results in fast performance but takes longer to build. 3 is slightly faster then 2, but takes very long to build (only recommended for final release builds).