cancel
Showing results for 
Search instead for 
Did you mean: 

Unity check Achievement count progress

dyfer
Partner
Hi !

I'm trying to get the progress of a count achievement.
I can access Achievement.IsUnlocked and Achievement.Name but is there any way to get the current progress before it's unlocked.
Something like Achievement.Count

foreach (var newAchievement in msg.Data){
       if (newAchievement.IsUnlocked){
       }else{
            int currentProgress = newAchievement.Count;
       }
}

I'm using C# & Unity

Thanks !
1 REPLY 1

dyfer
Partner
Thanks.

For anyone interested as it's not clear in the documentation, you can actually use Achievement.Count. I also found the full list in AchievementProgress.cs:
.Bitfield
.Count
.IsUnlocked
.Name
.UnlockTime

Cheers