play-games-plugin-for-unity
play-games-plugin-for-unity copied to clipboard
CS0246: The type or namespace name 'PlayGamesClientConfiguration' could not be found (are you missing a using directive or an assembly reference?)
Describe the bug Total 4 errors. error CS0246: The type or namespace name 'PlayGamesClientConfiguration' could not be found (are you missing a using directive or an assembly reference?) error CS0117: 'PlayGamesPlatform' does not contain a definition for 'InitializeInstance' error CS0019: Operator '==' cannot be applied to operands of type 'bool' and 'SignInStatus' error CS1061: 'PlayGamesPlatform' does not contain a definition for 'SignOut' and no accessible extension method 'SignOut' accepting a first argument of type 'PlayGamesPlatform' could be found (are you missing a using directive or an assembly reference?)
Below is my full script. script.txt
Versions
- Unity version: 2020.3.30f1
- Google Play Games Plugin for Unity version: 0.11.01
I have no idea... I tried reinstalling the Plugin, re-import all, re-typed Android Configuration... Please help.
same here deleted folder and installed the older version
PlayGamesClientConfiguration is a requirement for Playfab authentication with Android users so this needs fixing ASAP
Just updated to latest and getting this error. Has this been deprecated in favor of something else?
Gotta use the new functions
https://github.com/playgameservices/play-games-plugin-for-unity/blob/master/UPGRADING.txt
What new functions? This mentions Authenticate, but it doesn't mention where the functionality previously present in PlayGamesClientConfiguration
has moved to. For example, we used this configuration to enable using cloud save games. What new functionality/configuration is needed to accomplish the same outcome as the below snippet?
PlayGamesClientConfiguration config = new PlayGamesClientConfiguration.Builder()
.EnableSavedGames()
.Build();
PlayGamesPlatform.InitializeInstance(config);
Gotta use the new functions
https://github.com/playgameservices/play-games-plugin-for-unity/blob/master/UPGRADING.txt
Hm, I haven't used the those cloud save functions yet on a test project yet. Have you tried saving after a successful login and ensured cloud save is enabled on google play console for the application? Since, configurations aren't necessary anymore.
serious plugins dont remove just like that functions on next updates, instead they deprecate them, this is just stupid I am removing it completely because I dont want in future this to happen again.
Seeing the same issue here from upgrading an old project from years ago. I haven't used GPG since then, would appreciate some help on how to fix this code to use the new style, I tried what was in the UPGRADING.txt but got errors about Authenticate not taking 1 arg, so I tried a callback, and still not coming up with a working solution. Thanks!
Trying to do PlayGamesPlatform.Instance.Authenticate(); like in UPGRADING.txt results in:
@leonard4 You need to provide a callback method as a parameter:
PlayGamesPlatform.Activate();
PlayGamesPlatform.Instance.Authenticate(delegate (SignInStatus status) {
});
Had to downgrade again, as I cannot specify the "profile" OAuth scope anymore (which is required for PlayFab): https://docs.microsoft.com/en-us/gaming/playfab/features/authentication/platform-specific-authentication/google-sign-in-unity#adding-google-sign-in-to-your-unity-game
There's a related post at PlayFab forums: https://community.playfab.com/questions/61120/googleoauthnoidtokenincludedinresponse-when-loggin.html
Same here. Had to downgrade. At least there is any better manual to this step.
There is no documentation? newbie here
No documentation. This upgrade is complete garbage