DefinesUtility¶
Namespace:
SideXP.Core.EditorOnly
Utility class for managing scripting define symbols through code.
Fields¶
DEFINES_SEPARATOR¶
Methods¶
GetDefines()¶
Gets the scripting define symbols from Player Settings for the current target platform.
Returns
Returns the defines from Player Settings.
GetDefines(BuildTargetGroup)¶
Gets the scripting define symbols from Player Settings for the given target platform.
Parameters
platform: The platform of which you want to get the scripting define symbols.
Returns
Returns the defines from Player Settings.
IsDefined(string)¶
Checks if the named scripting define symbol is set for the current target platform.
Parameters
define: The define you want to check.
Returns
Returns true if the define is set.
IsDefined(string, BuildTargetGroup)¶
Checks if the named scripting define symbol is set for the given target platform.
Parameters
define: The define you want to check.platform: The platform for which you want to check the define.
Returns
Returns true if the define is set.
AddDefine(string)¶
Adds the named scripting define symbol for the current target platform.
Parameters
define: The define you want to add.
Returns
Returns true if the define has been added successfully, or false if it was already registered.
AddDefine(string, BuildTargetGroup)¶
Adds the named scripting define symbol for the given target platform.
Parameters
define: The define you want to add.platform: The platform to which the define is added.
Returns
Returns true if the define has been added successfully, or false if it was already registered.
RemoveDefine(string)¶
Removes the named scripting define symbol for the current target platform.
Parameters
define: The define you want to remove.
Returns
Returns true if the define has been removed successfully, or false if it wasn't used.
RemoveDefine(string, BuildTargetGroup)¶
Removes the named scripting define symbol for the given target platform.
Parameters
define: The define you want to remove.platform: The platform from which the define is removed.
Returns
Returns true if the define has been removed successfully, or false if it wasn't used.