文档

Unity Engine

Unity Engine

webGLUsePreBuiltUnityEngine

Use prebuilt JavaScript version of Unity engine.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Property
  • Namespace: UnityEditor
  • Assembly: UnityEditor
警告
Removed. Building with pre-built Engine option is no longer supported.
public static bool webGLUsePreBuiltUnityEngine { get; set; }

Remarks

This option is passed to the emscripten compiler for WebGL builds. If enabled, then only the user script code will be compiled to JavaScript and linked dynamically with a prebuilt Unity engine JavaScript module, which significantly reduces build iteration time. The prebuilt Unity engine module is unstripped and therefore is not suitable for release builds. For that reason this property only has effect on development builds, and is ignored otherwise.