Delete a scripting define symbol for a platform that doesn't exist anymore

Hello,

My project was created in a version of Unity which presumably had Xbox360 as a build target, likely with matching project settings.

I’m now on v5.5.1 and Xbox360 is not a valid build target, but the scripting defines in the project settings for Xbox360 still exist. I know this because I can see them in a custom define manager I am using.

How would I delete these old script defines that I will never use again? Is there any way to delete scripting defines for platforms you don’t have installed?

Thanks,
Steven

EDIT:

Should have said if I try the following C# script

PlayerSettings.SetScriptingDefineSymbolsForGroup(BuildTargetGroup.XBOX360,“”);

I get the error

PlayerSettings Validation: Requested build target group (6) doesn’t exist; #define symbols for scripting won’t be added.
UnityEditor.PlayerSettings:SetScriptingDefineSymbolsForGroup(BuildTargetGroup, String)
GameSettings:OnValidate() (at Assets/_Scripts/GameSettings.cs:168)
UnityEditor.DockArea:OnGUI()

But the XBOX360 define is stored somewhere.

Hmm. Can you open the Playersettings.asset file with a text editor and just delete it? :wink:

3 Likes