Class ScriptingDefines
Helper class for adding/removing scripting define symbols
Inheritance
Namespace: Atlas
Assembly: Atlas.Editor.dll
Syntax
public static class ScriptingDefines
Methods
| Improve this Doc View SourceAddSymbol(String)
Adds the given preprocessor definition to the PlayerSettings for all valid build groups
Declaration
public static void AddSymbol(string symbol)
Parameters
Type | Name | Description |
---|---|---|
System.String | symbol | Preprocessor symbol to add |
AddSymbol(BuildTargetGroup, String)
Adds the given preprocessor definition to the PlayerSettings for the given build group
Declaration
public static void AddSymbol(BuildTargetGroup group, string symbol)
Parameters
Type | Name | Description |
---|---|---|
UnityEditor.BuildTargetGroup | group | Build group to add the symbol to |
System.String | symbol | Preprocessor symbol to add |
ContainsSymbol(String)
Determines if the current build group has the given symbol defined
Declaration
public static bool ContainsSymbol(string symbol)
Parameters
Type | Name | Description |
---|---|---|
System.String | symbol | Preprocessor symbol to check for |
Returns
Type | Description |
---|---|
System.Boolean | true if the symbol is define, false if not |
ContainsSymbol(BuildTargetGroup, String)
Determines if the given target group has the given symbol defined
Declaration
public static bool ContainsSymbol(BuildTargetGroup group, string symbol)
Parameters
Type | Name | Description |
---|---|---|
UnityEditor.BuildTargetGroup | group | Build group to check |
System.String | symbol | Preprocessor symbol to check for |
Returns
Type | Description |
---|---|
System.Boolean | true if the symbol is define, false if not |
IsGroupValid(BuildTargetGroup)
Checks if the given group is valid
Declaration
public static bool IsGroupValid(BuildTargetGroup group)
Parameters
Type | Name | Description |
---|---|---|
UnityEditor.BuildTargetGroup | group | The group to check |
Returns
Type | Description |
---|---|
System.Boolean | true if valid, false if invalid |
RemoveSymbol(String)
Removes the given preprocessor definition from the PlayerSettings for all valid build groups
Declaration
public static void RemoveSymbol(string symbol)
Parameters
Type | Name | Description |
---|---|---|
System.String | symbol | Preprocessor symbol to add |
RemoveSymbol(BuildTargetGroup, String)
Removes the given preprocessor definition from the PlayerSettings for the given build groups
Declaration
public static void RemoveSymbol(BuildTargetGroup group, string symbol)
Parameters
Type | Name | Description |
---|---|---|
UnityEditor.BuildTargetGroup | group | Build group to remove the symbol from |
System.String | symbol | Preprocessor symbol to add |