Class WasmOutputSettings
Inheritance
WasmOutputSettings
Syntax
public class WasmOutputSettings : IDotsRuntimeBuildModifier, IBuildComponent
Fields
EmbedCpuProfiler
Declaration
[Tooltip("If enabled, the generated build will embed an ad hoc CPU frame rate counter and a frame time profiling graph. CPU profiling incurs a small performance overhead.")]
public bool EmbedCpuProfiler
Field Value
EmbedMemoryProfiler
Declaration
[Tooltip("If enabled, the generated build will embed an ad hoc Wasm heap memory usage profiler. Use this for advanced memory debugging from Wasm heap perspective. Memory profiling incurs a large performance overhead.")]
public bool EmbedMemoryProfiler
Field Value
EmitRuntimeAllocationDebugChecks
Declaration
[Tooltip("If enabled, the generated build will be annotated for validity of low-level memory allocation operations. Enable to track sources of memory allocation and buffer overrun corruptions. Incurs a large performance overhead.")]
public bool EmitRuntimeAllocationDebugChecks
Field Value
EmitRuntimeMemoryDebugChecks
Declaration
[Tooltip("If enabled, the generated build will be annotated for validity of low-level memory load and store operations. Enable to track sources of memory access corruptions. Incurs a large performance overhead.")]
public bool EmitRuntimeMemoryDebugChecks
Field Value
IncludeSymbolsForBrowserCallstacks
Declaration
[Tooltip("If enabled, the generated .wasm file will retain function name information, to be able to see proper callstack names in the browser, and for profiling and debugging in Browser Devtools. Enabling symbols carries a lare size increase, so remember to disable this when shipping!")]
public bool IncludeSymbolsForBrowserCallstacks
Field Value
MinifyHTMLFile
Declaration
[Tooltip("If enabled, the generated .html file will be minified for smallest build output. Ignored in Debug and Develop builds.")]
public bool MinifyHTMLFile
Field Value
MinifyOutputWithClosure
Declaration
[Tooltip("If enabled, Closure compiler is used to minify JavaScript code. This is generally recommended for smallest build output, but it does require carefully adhering to Closure's name minification rules. For more information, refer to https://github.com/google/closure-compiler/. Ignored in Debug and Develop builds.")]
public bool MinifyOutputWithClosure
Field Value
OutputSingleHTMLFile
Declaration
[Tooltip("If enabled, Wasm build will generate a single .html file as build output, that embeds HTML, JS, Wasm and Asset data. However, this increases build size and slows down startup, so it is not recommended unless deploying to an environment that requires it.")]
public bool OutputSingleHTMLFile
Field Value
WebTemplateFolder
Declaration
[Tooltip("Specifies the location of the web template folder. Specified folder is treated as relative to the project root. If this value is empty, then the default web template will be used.")]
public string WebTemplateFolder
Field Value
Methods
Modify(JsonObject)
Declaration
public void Modify(JsonObject jsonObject)
Parameters
Implements
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.