unity-game-engineauthenticationplayfab

What is the problem for login Playfab with Game Center id?


in my game I'm trying to login Playfab with Game Center user ID.

Social.Active.localUser.Authenticate(
        (s)=> 
        {
            GameCenterUserName = Social.localUser.userName;
            GameCenterUsedID = Social.localUser.id;
        });

I use the code above, but it always returns GameCenterUsedID = "1000" and GameCenterUserName ="Lerpz". Can some help me about this? Thanks


Solution

  • You need. PlayFabClientAPI.LoginWithGameCenter

    The Social class are unity build-in side.