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
Automatically define DISABLESTEAMWORKS when running on non-Steam platforms #126
Comments
So I was about to do this but... the reason why I didn't is that it would remove the symbols from usage elsewhere. I.E. You would need to wrap all steam calls with "#if UNITY_STANDALONE" as well instead of just an if(). Which while it is good practice it would inconvenience a lot of people currently. Correct me if I'm wrong about that! |
I've been thinking about this some more, and realize it probably makes sense to to support both runtime and compile time conditionals. Perhaps the answer here is to explicitly document how one would remove all Steamworks.NET APIs at compile time, i.e. wherever the docs cover
|
This is a nice idea, but if you're on a large project that spans many different platforms, you should probably already have some sort of build automation solution that can handle conditionally defining I also fear that trying to modify those defines outside of the context of someone's standard build workflow could cause issues or prove to be kinda pointless. Anyone already using the |
Adding DISABLESTEAMWORKS does not work when added to the scripting define symbols. |
Thanks for the
DISABLESTEAMWORKS
define in c303806.I think it would be nice if
DISABLESTEAMWORKS
where automatically defined on non-Steam platforms, such as Android/iOS.Could be as easy as:
The text was updated successfully, but these errors were encountered: