Platform-specific build variants?
I am building a simple mobile game and I ran into a problem: Google play games services on ios is being deprecated so I am thinking if could I make the project in a way that when building for ios it would ignore the google play stuff and use game center and when building for android unity would build the app with google play games?
Answer by slole · Jun 02, 2017 at 04:10 PM
OK so nevermind: the plugin is just ignored when not being used on the current build platform so all you have to do is just use simple #if UNITY_ANDROID and #if UNITY_IOS and everything works as expected.
Your answer
Follow this Question
Related Questions
TurnbasedGame ios build , not giving match delegate on other player turn complete. 0 Answers
Google Play services error Execution failed for task ':transformClassesWithJarMergingForRelease'. 0 Answers
Google Play Games - Unable to sign in - load the player 0 Answers
Memory Issues while App Launching,Memory Spike right before Splash Screen(Cold Start?) 0 Answers
2021.2.7: DownloadHandlerTexture and UnityWebRequestTexture not recognized? 1 Answer