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

Fixed scripting defines for dedicated server #884

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

cabbagegod
Copy link

Unity has changed how build targets are defined and have set GetScriptingDefineSymbolsForGroup and SetScriptingDefineSymbolsForGroup for future deprecation. This introduces a bug in PlayFab, causing the editor settings not to update the scripting defines when a "Dedicated Server" build is selected, which was released in 2021.3.

This PR should fix the problem with dedicated servers for versions 2021.3+, and cover backwards compatibility for older Unity versions. Additionally, 2021.2+ should now use the non-deprecated methods for scripting define symbols.

The large use of conditional compilation is due to an oversight(?) from Unity, where this is no easy way to get your current build setting for dedicated servers, because dedicated servers are actually a sub target.

@cabbagegod
Copy link
Author

@microsoft-github-policy-service agree

@cabbagegod
Copy link
Author

Fixed a bug. Still needs to be tested on a Unity version before 2021.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant