Skip to content

Conversation

@lopezt-unity
Copy link
Collaborator

Purpose of this PR

Fixed a bug where Experimental Features Enabled was not activating when using Dedicated Server platform.
Basically the user was clicking on "Experimental Features Enabled" and nothing was happening.
After investigation, he is using the Dedicated server as a platform. The problem is coming from the fact that this platform as not been added in the BuildTargetGroup enum and thus was not impacted by the Settings adding the Scripting Define Symbol as this symbol was not added for that specific target.

Moreover the Symbols were set by ProBuilder using PlayerSettings.[Get/Set]ScriptingDefineSymbolsForGroup which have been deprecated since. This PR update this as well for Unity 2021.2 and after where PlayerSettings.[Get/Set]ScriptingDefineSymbols have been introduced.
This is now getting the valid platforms from BuildPlatforms.instance.GetValidPlatforms rather than going through System.Enum.GetValues(typeof(BuildTargetGroup))

Tested against Unity 2023.1.0a13, 2022.2.0a18, 2022.1.3f1, 2021.3.7f1 and 2021.2.0b12

Links

Jira: https://jira.unity3d.com/browse/PBLD-34

Comments to Reviewers

[List known issues, planned work, provide any extra context for your code.]

@lopezt-unity lopezt-unity added the bug Something isn't working label Sep 27, 2022
@modrimkus modrimkus self-requested a review October 3, 2022 15:00
Copy link
Contributor

@claudiaantoun claudiaantoun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lopezt-unity lopezt-unity merged commit 5005f57 into master Oct 4, 2022
@lopezt-unity lopezt-unity deleted the bugfix/pbld-34-fixing-experimental-on-server branch October 4, 2022 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants