Firestorm Studio
started a topic on Fri, 26 June 2015 at 4:17 AM
Trying to work out how to show a players display name c# unity
Firestorm Studio
started a topic on Fri, 26 June 2015 at 4:17 AM
Trying to work out how to show a players display name c# unity
Best Answer
Firestorm Studio said on Fri, 26 June 2015 at 8:07 AM
This seemed to have worked
PlayFabClientAPI.GetAccountInfo (new GetAccountInfoRequest (), OnGetUsernameResult, OnGetUsernameError);
}
public void OnGetUsernameResult(GetAccountInfoResult result)
{
theLoginScreen.loginStatus.text = "Welcome " + result.AccountInfo.Username;
}
2 Comments
Firestorm Studio said on Fri, 26 June 2015 at 4:46 AM
this is example of my code
public string username;
void Start ()
{
GetAccountInfoRequest request = new GetAccountInfoRequest ();
username = request.Username;
PlayFabClientAPI.GetAccountInfo (request, OnGetUsernameResult, OnGetUsernameError);
}
public void OnGetUsernameResult(GetAccountInfoResult result)
{
print (username);
}
Firestorm Studio said on Fri, 26 June 2015 at 8:07 AM
This seemed to have worked
PlayFabClientAPI.GetAccountInfo (new GetAccountInfoRequest (), OnGetUsernameResult, OnGetUsernameError);
}
public void OnGetUsernameResult(GetAccountInfoResult result)
{
theLoginScreen.loginStatus.text = "Welcome " + result.AccountInfo.Username;
}
No one has followed this question yet.