docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class WebPlayerSettings

    A structure that gathers up all Web Player settings, in particular, those defined in (UnityEditor.PlayerSettings.WebGL), and Web Build Settings.

    Inheritance
    object
    WebPlayerSettings
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Web.Stripping.Editor
    Assembly: Unity.Web.Stripping.Editor.dll
    Syntax
    [Serializable]
    public class WebPlayerSettings

    Constructors

    WebPlayerSettings()

    Constructs with default-initialized values.

    Declaration
    public WebPlayerSettings()
    See Also
    WebBuildSettings
    WebPlayerSettingsScope

    Fields

    BuildSettings

    The build settings used together with the Player settings.

    Declaration
    public WebBuildSettings BuildSettings
    Field Value
    Type Description
    WebBuildSettings
    See Also
    WebBuildSettings
    WebPlayerSettingsScope

    closeOnQuit

    Refer to PlayerSettings.WebGL.closeOnQuit.

    Declaration
    public bool closeOnQuit
    Field Value
    Type Description
    bool
    See Also
    WebBuildSettings
    WebPlayerSettingsScope

    compressionFormat

    Refer to PlayerSettings.WebGL.compressionFormat.

    Declaration
    public WebGLCompressionFormat compressionFormat
    Field Value
    Type Description
    WebGLCompressionFormat
    See Also
    WebBuildSettings
    WebPlayerSettingsScope

    dataCaching

    Refer to PlayerSettings.WebGL.dataCaching.

    Declaration
    public bool dataCaching
    Field Value
    Type Description
    bool
    See Also
    WebBuildSettings
    WebPlayerSettingsScope

    debugSymbolMode

    Refer to PlayerSettings.WebGL.debugSymbolMode.

    Declaration
    public WebGLDebugSymbolMode debugSymbolMode
    Field Value
    Type Description
    WebGLDebugSymbolMode
    See Also
    WebBuildSettings
    WebPlayerSettingsScope

    decompressionFallback

    Refer to PlayerSettings.WebGL.decompressionFallback.

    Declaration
    public bool decompressionFallback
    Field Value
    Type Description
    bool
    See Also
    WebBuildSettings
    WebPlayerSettingsScope

    enableSubmoduleStrippingCompatibility

    Refer to PlayerSettings.WebGL.enableSubmoduleStrippingCompatibility.

    Declaration
    public bool enableSubmoduleStrippingCompatibility
    Field Value
    Type Description
    bool
    See Also
    WebBuildSettings
    WebPlayerSettingsScope

    exceptionSupport

    Refer to PlayerSettings.WebGL.exceptionSupport.

    Declaration
    public WebGLExceptionSupport exceptionSupport
    Field Value
    Type Description
    WebGLExceptionSupport
    See Also
    WebBuildSettings
    WebPlayerSettingsScope

    geometricMemoryGrowthStep

    Refer to PlayerSettings.WebGL.geometricMemoryGrowthStep.

    Declaration
    public float geometricMemoryGrowthStep
    Field Value
    Type Description
    float
    See Also
    WebBuildSettings
    WebPlayerSettingsScope

    il2CppCodeGeneration

    Refer to Il2CppCodeGeneration.

    Declaration
    public Il2CppCodeGeneration il2CppCodeGeneration
    Field Value
    Type Description
    Il2CppCodeGeneration
    See Also
    WebBuildSettings
    WebPlayerSettingsScope

    il2CppCompilerConfiguration

    Refer to Il2CppCompilerConfiguration.

    Declaration
    public Il2CppCompilerConfiguration il2CppCompilerConfiguration
    Field Value
    Type Description
    Il2CppCompilerConfiguration
    See Also
    WebBuildSettings
    WebPlayerSettingsScope

    initialMemorySize

    Refer to PlayerSettings.WebGL.initialMemorySize.

    Declaration
    public int initialMemorySize
    Field Value
    Type Description
    int
    See Also
    WebBuildSettings
    WebPlayerSettingsScope

    linearMemoryGrowthStep

    Refer to PlayerSettings.WebGL.linearMemoryGrowthStep.

    Declaration
    public int linearMemoryGrowthStep
    Field Value
    Type Description
    int
    See Also
    WebBuildSettings
    WebPlayerSettingsScope

    linkerTarget

    Refer to PlayerSettings.WebGL.linkerTarget.

    Declaration
    public WebGLLinkerTarget linkerTarget
    Field Value
    Type Description
    WebGLLinkerTarget
    See Also
    WebBuildSettings
    WebPlayerSettingsScope

    managedStrippingLevel

    Refer to ManagedStrippingLevel.

    Declaration
    public ManagedStrippingLevel managedStrippingLevel
    Field Value
    Type Description
    ManagedStrippingLevel
    See Also
    WebBuildSettings
    WebPlayerSettingsScope

    maximumMemorySize

    Refer to PlayerSettings.WebGL.maximumMemorySize.

    Declaration
    public int maximumMemorySize
    Field Value
    Type Description
    int
    See Also
    WebBuildSettings
    WebPlayerSettingsScope

    memoryGeometricGrowthCap

    Refer to PlayerSettings.WebGL.memoryGeometricGrowthCap.

    Declaration
    public int memoryGeometricGrowthCap
    Field Value
    Type Description
    int
    See Also
    WebBuildSettings
    WebPlayerSettingsScope

    memoryGrowthMode

    Refer to PlayerSettings.WebGL.memoryGrowthMode.

    Declaration
    public WebGLMemoryGrowthMode memoryGrowthMode
    Field Value
    Type Description
    WebGLMemoryGrowthMode
    See Also
    WebBuildSettings
    WebPlayerSettingsScope

    memorySize

    Refer to PlayerSettings.WebGL.memorySize.

    Declaration
    public int memorySize
    Field Value
    Type Description
    int
    See Also
    WebBuildSettings
    WebPlayerSettingsScope

    nameFilesAsHashes

    Refer to PlayerSettings.WebGL.nameFilesAsHashes.

    Declaration
    public bool nameFilesAsHashes
    Field Value
    Type Description
    bool
    See Also
    WebBuildSettings
    WebPlayerSettingsScope

    powerPreference

    Refer to PlayerSettings.WebGL.powerPreference.

    Declaration
    public WebGLPowerPreference powerPreference
    Field Value
    Type Description
    WebGLPowerPreference
    See Also
    WebBuildSettings
    WebPlayerSettingsScope

    showDiagnostics

    Refer to PlayerSettings.WebGL.showDiagnostics.

    Declaration
    public bool showDiagnostics
    Field Value
    Type Description
    bool
    See Also
    WebBuildSettings
    WebPlayerSettingsScope

    template

    Refer to PlayerSettings.WebGL.template.

    Declaration
    public string template
    Field Value
    Type Description
    string
    See Also
    WebBuildSettings
    WebPlayerSettingsScope

    threadsSupport

    Refer to PlayerSettings.WebGL.threadsSupport.

    Declaration
    public bool threadsSupport
    Field Value
    Type Description
    bool
    See Also
    WebBuildSettings
    WebPlayerSettingsScope

    useEmbeddedResources

    Refer to Embedded resources in Web.

    Declaration
    public bool useEmbeddedResources
    Field Value
    Type Description
    bool
    See Also
    WebBuildSettings
    WebPlayerSettingsScope

    wasm2023

    Refer to PlayerSettings.WebGL.wasm2023.

    Declaration
    public bool wasm2023
    Field Value
    Type Description
    bool
    See Also
    WebBuildSettings
    WebPlayerSettingsScope

    webAssemblyBigInt

    Refer to PlayerSettings.WebGL.webAssemblyBigInt.

    Declaration
    public bool webAssemblyBigInt
    Field Value
    Type Description
    bool
    See Also
    WebBuildSettings
    WebPlayerSettingsScope

    webAssemblyTable

    Refer to PlayerSettings.WebGL.webAssemblyTable.

    Declaration
    public bool webAssemblyTable
    Field Value
    Type Description
    bool
    See Also
    WebBuildSettings
    WebPlayerSettingsScope

    Methods

    FromPlayerSettings()

    Constructs a new WebPlayerSettings with values read from current Player settings.

    Declaration
    public static WebPlayerSettings FromPlayerSettings()
    Returns
    Type Description
    WebPlayerSettings

    WebPlayerSettings with the current Player settings.

    See Also
    WebBuildSettings
    WebPlayerSettingsScope

    ReadFromPlayerSettings()

    Applies the settings from UnityEditor.PlayerSettings.WebGL to this object.

    Declaration
    public void ReadFromPlayerSettings()
    See Also
    WebBuildSettings
    WebPlayerSettingsScope

    WriteToPlayerSettings()

    Applies the settings to UnityEditor.PlayerSettings.WebGL.

    Declaration
    public void WriteToPlayerSettings()
    See Also
    WebBuildSettings
    WebPlayerSettingsScope

    See Also

    WebBuildSettings
    WebPlayerSettingsScope
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)