SetScriptingDefineSymbols
Set user-specified symbols for script compilation for the given build target.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
SetScriptingDefineSymbols(NamedBuildTarget, string)
Set user-specified symbols for script compilation for the given build target.
public static void SetScriptingDefineSymbols(NamedBuildTarget buildTarget, string defines)
Parameters
The NamedBuildTarget.
Symbols for this build target are passed as an array or as a string separated by semicolons.
Remarks
To see defines string values go to Edit > Project Settings > Player Settings > Scripting Compilation > Scripting Define Symbols.
Additional Resources: Platform Dependent Compilation.
SetScriptingDefineSymbols(NamedBuildTarget, string[])
Set user-specified symbols for script compilation for the given build target.
public static void SetScriptingDefineSymbols(NamedBuildTarget buildTarget, string[] defines)
Parameters
The NamedBuildTarget.
Symbols for this build target are passed as an array or as a string separated by semicolons.
Remarks
To see defines string values go to Edit > Project Settings > Player Settings > Scripting Compilation > Scripting Define Symbols.
Additional Resources: Platform Dependent Compilation.