Retrieving the configuration

Retrieve information such as the total number of achievements and the total number of achievement groups in the game.

The achievements settings are available in the AchievementsSettings attribute of CoreServices. It is an instance of AchievementsSettings, with attributes such as AchievementCount and AchievementGroupCount. The AchievementsSettings attribute is only populated when the user is signed in.

Example

Debug.Log($"Total number of achievements: {CoreServices.AchievementsSettings!.AchievementCount}");
Debug.Log($"Total number of achievement groups: {CoreServices.AchievementsSettings!.AchievementGroupCount}");

Last updated