Hello, in my game i want log player in with Game Center account. I found someresources about this.
Social.Active.localUser.Authenticate( (s)=> { GameCenterUserName = Social.localUser.userName; GameCenterUsedID = Social.localUser.id; });
I use this to for authhentication to Gamecenter.
Then, i use below code to create a new account on Playfab.
#if UNITY_IOS LoginWithGameCenterRequest req = new LoginWithGameCenterRequest { CreateAccount = true, TitleId = GeneralManager.inst.PLAYFAB_TITLE_ID, PlayerId = GameCenterUsedID }; PlayFabClientAPI.LoginWithGameCenter(req, DeviceIdLoginSuccess, PlayfabErrorScript); #endif
It successfully creates an account but the Game Center ID always returns "1000" and the username always returns "Lerpz".
Where am i doing wrong?
Thanks