文档

Unity Engine

Unity Engine

WebGLLinkerTarget

The build format options available when building to Web. This enum has been deprecated.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Enum
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
警告
Deprecated. WebGLLinkerTarget is deprecated. Web builds always use WebAssembly.
public enum WebGLLinkerTarget

Remarks

Web builds always use WebAssembly, so this enum has no effect. If you set PlayerSettings.WebGL.linkerTarget to WebGLLinkerTarget.Asm, Unity logs a warning and switches the setting to WebGLLinkerTarget.Wasm when you build.

Fields

Value

Description

AsmPreviously generated asm.js output. This setting has been deprecated. If you build with this value, Unity logs a warning and generates WebAssembly output instead.
WasmOnly WebAssembly output is generated. This setting has been deprecated.