文档

Unity Engine

Unity Engine

extraScriptingDefines

User-specified preprocessor defines used while compiling assemblies during the build. (optional)
阅读时间1 分钟最后更新于 21 天前

Definition

  • Type: Property
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public string[] extraScriptingDefines { readonly get; set; }

Remarks

Preprocessor defines may be used to exclude serialized fields from class definitions, so this can have an influence on how objects are serialized during the build process. Typically values passed here should match any extra scripting defines passed during the player build.