Im trying to customize a piece of code from unity tutorials. Involving the response api.
public void UpdateInformation()
{
//We send an AccountDetailsRequest
new AccountDetailsRequest().Send((response) =>
{
//We pass the details we want from our response to the function which will update our information
UpdateGUI(response.DisplayName.UserId);
});
}
and i keep receiving an error in unity regarding the user id.
a point in the right direction on how to implement the response feature would be nice to there are no available examples. And the documentation has the Name:Type entries with a starting lowercase while in unity it requires Uppercase, it would be nice to fix or point a heads-up to users.
Thnx
Cheers,
Best Answer
C
Customer Support
said
about 8 years ago
Hi,
I believe the correct way to get the user Id is to use response.UserId and for the display name use response.DisplayName.
If you are using an IDE with autocomplete you can type in response, then the period key which gives you response. and it should give you a list of variables to select from.
Shane
1 Comment
Customer Support
said
about 8 years ago
Answer
Hi,
I believe the correct way to get the user Id is to use response.UserId and for the display name use response.DisplayName.
If you are using an IDE with autocomplete you can type in response, then the period key which gives you response. and it should give you a list of variables to select from.
Test Account
Hi,
Im trying to customize a piece of code from unity tutorials. Involving the response api.
and i keep receiving an error in unity regarding the user id.
a point in the right direction on how to implement the response feature would be nice to there are no available examples. And the documentation has the Name:Type entries with a starting lowercase while in unity it requires Uppercase, it would be nice to fix or point a heads-up to users.
Thnx
Cheers,
Hi,
I believe the correct way to get the user Id is to use response.UserId and for the display name use response.DisplayName.
If you are using an IDE with autocomplete you can type in response, then the period key which gives you response. and it should give you a list of variables to select from.
Shane
Customer Support
Hi,
I believe the correct way to get the user Id is to use response.UserId and for the display name use response.DisplayName.
If you are using an IDE with autocomplete you can type in response, then the period key which gives you response. and it should give you a list of variables to select from.
Shane
-
Documentation Notes
-
Design issues with user events
-
Using NoSQL
-
Runtime Collections vs Metadata Collections
-
Anonymous authentication from browser app
-
Modules
-
Movement With Unity
-
Problem with url parameters for downloadables
-
Querying NoSql GameSparks database
-
Challenge accesType
See all 2487 topics