Class WasmMemorySettings | Platforms Web | 0.8.0-preview.7
docs.unity3d.com
    Show / Hide Table of Contents

    Class WasmMemorySettings

    Inheritance
    Object
    WasmMemorySettings
    Namespace: Unity.Build.Web.DotsRuntime
    Syntax
    public class WasmMemorySettings : IDotsRuntimeBuildModifier, IBuildComponent

    Fields

    AllowWasmMemoryGrowth

    Declaration
    [Tooltip("If enabled, WebAssembly memory is allowed to grow in size after its initial creation. This should generally only be disabled if to enforce a specified memory limit, e.g. when debugging that application does not consume exorbitant amounts of memory in a memory leak.")]
    public bool AllowWasmMemoryGrowth
    Field Value
    Type Description
    Boolean

    WasmMemorySize

    Declaration
    [Tooltip("Specifies the starting size of the WebAssembly heap. If memory growth is enabled, this memory size will specify the initial size of the heap, which can later grow as more memory is needed. If memory growth is disabled, this field specifies the total/maximum size. (default: 128MB)")]
    public string WasmMemorySize
    Field Value
    Type Description
    String

    WasmStackSize

    Declaration
    [Tooltip("Specifies the size of the program main thread stack on the WebAssembly memory. Generally this can be kept small, but may need increasing if utilizing deeply nested recursive programming techniques. (default: 512KB)")]
    public string WasmStackSize
    Field Value
    Type Description
    String

    Methods

    Modify(JsonObject)

    Declaration
    public void Modify(JsonObject jsonObject)
    Parameters
    Type Name Description
    Unity.Serialization.Json.JsonObject jsonObject
    Implements
    IDotsRuntimeBuildModifier.Modify(JsonObject)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023