User.GetUserName different to leaderboard name

Highlighted
jeffries7
Contributor

User.GetUserName different to leaderboard name

Using Unity 5.6.2 with the newest version of Viveport.

 

When I use User.GetUserName() it returns what seems to be the user for for login. However when I get that players entry in a leaderboard it returns the first name and surname, to make matters worse i cannot now check the leaderboard entry against the username if i want to highlight it to the player as their score. 

 

Is there another way to do this or is this something that'll be adressed in the future?

Vive Staff

Re: User.GetUserName different to leaderboard name

@Continent @yakingkuo


David R

Technical Specialist - San Francisco, CA; Monday-Friday

Click here to send me a PM

Vive Staff

Re: User.GetUserName different to leaderboard name

@jeffries7

We provide the display name to the end user from its account.

The following is the display rule.

1. The end user logins HTC account.

2. Viveport allows the end user to set up its display name.

3. If the end user completes the display name, the end user will show the display name on the leaderboard.

4. If the end user doesn't setup the display name, the end user will show the real world first name only on the leaderboard.

5. Viveport follows the GDPR rule for the leaderboard.

 

Please advise us what do you want for the leaderboard.

 

Regards,

 

Continent

jeffries7
Contributor

Re: User.GetUserName different to leaderboard name

On our account we've setup the display name and when we use the GetUserName funtion it returns the display name. However when I get a leaderboard entry, then access that entries display name it returns the real world name and not the display name.

It also returns both the first and second name and not just the first name.


@Continent

Vive Staff

Re: User.GetUserName different to leaderboard name

Hi Jeffries7:

 

Thanks for your information. 

The leaderboard part, we are doing to show the display name, and will finish the task ASAP. 

Will let you know once done. 

 

Thanks.