- Home /
Lag in Social.LoadAchievements or Social.ReportProgress
Hi,
I am having difficulties with determining the correct flow for working with Soclai.LoadAchievements and Social.ReportProgress.
I have tried to make this example as concise as possible. In it, I am trying to:
Save an achievement
Wait for the callback to fire
Load the achievements list
Wait for its callback to fire
Print the number of achievements loaded
Sounds easy enough, and of course, I expect the loaded achievements list to contain the one I reported.
The result however is zero achievements.
Anyone can shed some light on this?
Here is the code:
public void Test() {
// At this point user is authenticated
// and achievements were reset
Debug.Log("Test...");
Social.ReportProgress( "ProgressTest", 50, success => {
Debug.Log("Reported:"+success);
Debug.Log("LoadAchievements...");
Social.LoadAchievements( loadedAchievements => {
Debug.Log("LoadAchievements Done");
Debug.Log("Count:"+loadedAchievements.Length );
// Result: 0 instead of expected 1
});
});
}
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613111556im_/https://answers.unity.com/themes/thub/images/avi.jpg)