'Sign Out google play game services in unity

How to sign out gpg in unity ? and change button text to sign in ?

i tried in this but nothing : Social.localUser.Authenticate(success => { LoadData(); });



Solution 1:[1]

To sign the user out, use the PlayGamesPlatform.SignOut method.

using GooglePlayGames;
using UnityEngine.SocialPlatforms;

// sign out
PlayGamesPlatform.Instance.SignOut();

After signing out, no further API calls can be made until the user authenticates again.

See this GitHub post for more information and also this documentation for more details on the sign-in flow.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Teyam