Hello everyone.I am running a cloudscript on playfab.I am not taking ny parameters and i need to get playfab username from it.how can i get playfab username from cloudscripts.Thank you
Hello everyone.I am running a cloudscript on playfab.I am not taking ny parameters and i need to get playfab username from it.how can i get playfab username from cloudscripts.Thank you
Do you mean the username that is used to login the player with password? Or the title display name of the user? There is the pre-defined variable “currentPlayerId” in CloudScript representing the PlayFab ID of the player who execute this function. You can call the server.GetUserAccountInfo with the “currentPlayerId” in CloudScript to get the username or display name of that user.
2 People are following this question.