Documentation

Unity Engine

Download Unity

Unity Engine

PlayerSettings.WebGL

WebGL specific player settings.
Read time 2 minutesLast updated 7 hours ago

Definition

  • Type: Class
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public sealed class PlayerSettings.WebGL

Static Properties

Property

Description

closeOnQuitIf enabled, the Unity Player will close the browser running it when the application quits.
compressionFormatCompressionFormat defines the compression type that the WebGL resources are encoded to.
dataCachingEnables automatic caching of unityweb files.
debugSymbolModeEnables generation of debug symbols file in the build output directory. Supported options: embedded debug symbols and debug symbols in external file.
decompressionFallbackInclude decompression fallback code for build files in the loader.
enableSubmoduleStrippingCompatibilityIf enabled, produces a build that can be used with the submodule stripping functionality of the Web Stripping Tool package. If disabled, produces a build that is not intended to be submodule stripped. It is best to leave this option disabled whenever not using the Web Stripping Tool package, or generated code size can be adversely affected.
exceptionSupportException support for Web builds.
geometricMemoryGrowthStepHeap memory growth factor.
initialMemorySizeInitial size of the Wasm heap memory in MB.
linearMemoryGrowthStepHeap memory growth step in MB.
maximumMemorySizeMaximum size of the Wasm heap memory in MB.
memoryGeometricGrowthCapUpper limit for heap growth step in MB.
memoryGrowthModeThe growth mode for Wasm heap memory.
nameFilesAsHashesEnables using MD5 hash of the uncompressed file contents as a filename for each file in the build.
powerPreferenceThe power preference hint to provide to the WebGL context to help decide which GPU to use in multi-gpu systems. Note that this is just a hint, and some WebGL implementations may choose to ignore it.
progressiveAssetLoadingProduces a build that loads assets on a per-scene basis instead of loading all game assets on startup.
showDiagnosticsDisplays a diagnostics overlay on the Unity application page.
templatePath to the WebGL template asset.
threadsSupportMultithreading support in WebGL.