Skip to main content

Watching achievements

You can detect achievement changes by watching them. We provide some scripts that make this task easier.

Using the AchievementWatcher

This script allows you to watch a specific achievement. You only need to attach the AchievementWatcher script to a GameObject. Then, use the Unity's Inspector to select the achievement you want to watch. And now you are watching achievement changes!

You will see a list of events in the Inspector. They will be called when the achievement receives changes. See the list below.

  • OnUnlock: called when the achievement is unlocked.

Using the AchievementsWatcher

This script allows you to listen to achievements events. You ned to attach the AchievementsWatcher script to a GameObject. Once this is done, you will be able to use the events shown in the Inspector. See the list below.

  • OnUnlock: called when any achievement is unlocked. It provides the Achievement code on the event method.