Bearbeiten

Freigeben über


ScriptingUtilities.AppendScriptingDefinitions Method

Definition

Caution

ScriptingUtilities.AppendScriptingDefinitions is obsolete and will be removed from a future version of MRTK. Please use FileUtilities.FindFilesInAssets and ScriptUtilities.AppendScriptingDefinitions.

Appends a set of symbolic constant definitions to Unity's Scripting Define Symbols for the specified build target group.

public:
 static void AppendScriptingDefinitions(System::String ^ fileName, UnityEditor::BuildTargetGroup targetGroup, cli::array <System::String ^> ^ symbols);
[System.Obsolete("ScriptingUtilities.AppendScriptingDefinitions is obsolete and will be removed from a future version of MRTK. Please use FileUtilities.FindFilesInAssets and ScriptUtilities.AppendScriptingDefinitions.")]
public static void AppendScriptingDefinitions (string fileName, UnityEditor.BuildTargetGroup targetGroup, string[] symbols);
[<System.Obsolete("ScriptingUtilities.AppendScriptingDefinitions is obsolete and will be removed from a future version of MRTK. Please use FileUtilities.FindFilesInAssets and ScriptUtilities.AppendScriptingDefinitions.")>]
static member AppendScriptingDefinitions : string * UnityEditor.BuildTargetGroup * string[] -> unit
Public Shared Sub AppendScriptingDefinitions (fileName As String, targetGroup As BuildTargetGroup, symbols As String())

Parameters

fileName
String

The name of an optional file locate before appending.

targetGroup
UnityEditor.BuildTargetGroup

The build target group for which the symbols are to be defined.

symbols
String[]

Array of symbols to define.

Attributes

Remarks

To always append the symbols, pass null (or the empty string) for the fileName parameter.

Applies to