Search Unity

Question Player Name Management

Discussion in 'Authentication' started by Evil-Otaku, Mar 30, 2023.

  1. Evil-Otaku

    Evil-Otaku

    Joined:
    Oct 17, 2012
    Posts:
    72
  2. MariusUrbelis

    MariusUrbelis

    Unity Technologies

    Joined:
    Mar 15, 2015
    Posts:
    38
    Hi! If you are looking to use those names as part of the Friends or Leaderboards then the names come with the service. Say querying a leaderboard would return players' appropriate names.

    Leaderboards has a Cloud Code SDK (https://cloud-code-sdk-documentation.cloud.unity3d.com/leaderboards/v1.1) that could help you if you are looking to work with Leaderboards from Cloud Code.

    As for using it in Cloud Code, the Authentication service does not yet have REST APIs available for this. See here: https://services.docs.unity.com/player-auth/v1/index.html#tag/Player-Authentication

    But if those become available an HTTP call could be done to manage one's own player name.
     
    Evil-Otaku likes this.
  3. Evil-Otaku

    Evil-Otaku

    Joined:
    Oct 17, 2012
    Posts:
    72
    Excellent, Thanks!
    I got thrown off by the Friends Sample not actually including Player Names.
    The main docs don't include a reference to the full SDK for Friends or Leaderboards like the other services and I didn't drill far enough down into the source.