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

Avoid adding the STEAMWORKS_NET define symbol to non-standalone platorms #660

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

Conversation

sandolkakos
Copy link

@sandolkakos sandolkakos commented Nov 27, 2024

Hi, I've added some logic to avoid the STEAMWORKS_NET scripting define symbol being automatically added to unsupported platforms like Android, iOS, etc.

In these platforms, if STEAMWORKS_NET is found in the defines, it will be removed since it will not work anyway.

In that case, because the console will already display a compiling error, you have to restart Unity in Non-SafeMode to the STEAMWORKS_NET to get automatically removed.

Explanation:

In my case, I do not like spreading #if STEAMWORKS_NET over my code base. I do it only in some special cases.

Scripts with a lot of Steam SDK library usage are part of an AssemblyDefinition like the one below:
image

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