简体   繁体   中英

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(); });

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 thisGitHub post for more information and also this documentation for more details on the sign-in flow.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM