Skip to main content

AchievementsService

The AchievementsService is the class responsible for managing achievements.

Methods API​

MethodParametersReturnsDescription
UnlockAchievementAchievementsUnlocks an achievement.
LockAchievementAchievementsLocks an achievement.
ClearAchievementsClears all achievements data (it locks all achievements).
HasAchievementAchievementsboolReturns wether an achievement is unlocked or not.

Static events​

EventParametersDescription
OnAchievementUnlockedAchievementsCalled when an achievement is unlocked. It provides the unlocked Achievement code.