Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Social.LoadUsers & Social.LoadScores (IOS)

Discussion in 'iOS and tvOS' started by ShockFactor, Feb 16, 2021.

  1. ShockFactor

    ShockFactor

    Joined:
    Sep 30, 2015
    Posts:
    8
    When I use Social.LoadScores and receive the IScore[] data...the IScore[]'s returned have a playerID like this:"G:878XXXXX"

    <returned data>
    scores UnityEngine.SocialPlatforms.Impl.Score[1]
    [0] "Rank: \'1\' Value: \'519387\' Category: \'CgkIqK3uwucEEXXXXX\' PlayerID: \'G:878XXXXX\' Date: \'2/14/2021 3:37:23 AM"


    Next, I feed the playerID's into the call for Social.active.LoadUsers so I can display all the details

    <returned data>
    userIDs UnityEngine.SocialPlatforms.Impl.UserProfile[1]
    [0] "1613507393101XXXXX - --OwXXXXX-- - False - Offline"
    id "1613507393101XXXXX"
    image " (UnityEngine.Texture2D)"
    isFriend false
    userName "--OwXXXXX--"


    Upon return, the id is different: 1613507393101XXXXX not allowing me to pair the Iscore with the UserProfile.

    What could I be doing wrong here?

    I'm building for iOS 12.3

    Any help would be handy!
    SG
     
  2. matt_unity258

    matt_unity258

    Joined:
    Dec 4, 2017
    Posts:
    17
    Did you ever solve this?