playgameservices / play-games-plugin-for-unity

Google Play Games plugin for Unity
Other
3.44k stars 959 forks source link

The name 'PlayGamesPlatform' does not exist in the current context #3023

Closed serge144 closed 3 years ago

serge144 commented 3 years ago

I just cloned my project from my repository, which has the play-games-plugin, and imported into the same Unity version. However in the script where I make use of PlayGamesPlatform, the following error shows up: "error CS0103: The name 'PlayGamesPlatform' does not exist in the current context"

Any advice?

serge144 commented 3 years ago

Fixed it, just needed to change the platform to Android in build settings. https://github.com/playgameservices/play-games-plugin-for-unity/issues/1545