Class EditorDefines
Provides method for managing the
Inheritance
System.Object
EditorDefines
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: StansAssets.Foundation.Editor
Assembly: cs.temp.dll.dll
Syntax
public static class EditorDefines
Methods
AddCompileDefine(String, BuildTarget[])
Attempts to add a new #define constant to the Player Settings
Declaration
public static void AddCompileDefine(string newDefineCompileConstant, params BuildTarget[] targets)
Parameters
Type | Name | Description |
---|---|---|
System.String | newDefineCompileConstant | constant to attempt to define |
BuildTarget[] | targets | platforms to add this for (default will add to all platforms) |
GetScriptingDefines()
Get user-specified symbols for script compilation for the current build target group
Declaration
public static string[] GetScriptingDefines()
Returns
Type | Description |
---|---|
System.String[] |
GetScriptingDefines(BuildTargetGroup)
Get user-specified symbols for script compilation for the given build target group
Declaration
public static string[] GetScriptingDefines(BuildTargetGroup targetGroup)
Parameters
Type | Name | Description |
---|---|---|
BuildTargetGroup | targetGroup | build target group |
Returns
Type | Description |
---|---|
System.String[] |
HasCompileDefine(String, BuildTarget[])
Check if define exists
Declaration
public static bool HasCompileDefine(string defineCompileConstant, params BuildTarget[] targets)
Parameters
Type | Name | Description |
---|---|---|
System.String | defineCompileConstant | constant to attempt to define |
BuildTarget[] | targets | platforms to add this for (default will add to all platforms) |
Returns
Type | Description |
---|---|
System.Boolean |
RemoveCompileDefine(String, BuildTarget[])
Attempts to remove a #define constant from the Player Settings
Declaration
public static void RemoveCompileDefine(string defineCompileConstant, params BuildTarget[] targetGroups)
Parameters
Type | Name | Description |
---|---|---|
System.String | defineCompileConstant | define constant |
BuildTarget[] | targetGroups | platforms to add this for (default will add to all platforms) |