Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix error when turning visual debugging on/off in Unity 5.4 or newer #222

Merged
merged 1 commit into from
Dec 6, 2016
Merged

Fix error when turning visual debugging on/off in Unity 5.4 or newer #222

merged 1 commit into from
Dec 6, 2016

Conversation

sbeca
Copy link
Contributor

@sbeca sbeca commented Nov 21, 2016

In Unity 5.4, Unity added the Obsolete attribute to the WP8 and BlackBerry values in the UnityEditor.BuildTargetGroup enum and removed them as valid build targets for scripting defines.

This means that when you try and change the toggle value for the Enable Visual Debugging setting, you get the following 2 errors in the console:

  1. PlayerSettings Validation: Requested build target group (15) doesn't exist; #define symbols for scripting won't be added.
  2. PlayerSettings Validation: Requested build target group (16) doesn't exist; #define symbols for scripting won't be added.

This PR fixes these errors by checking each BuildTargetGroup enum value for the Obsolete attribute before trying to set any scripting defines.

@sschmid sschmid merged commit 12385e5 into sschmid:develop Dec 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants