Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

GameCenterPlatform.ResetAllAchievements

Switch to Manual
public static function ResetAllAchievements(callback: Action<bool>): void;

Parameters

Description

Reset all the achievements for the local user.

Only affects the currently running game. Javascript code example:

#pragma strict
public class Reset extends MonoBehaviour {
	function Start() {
		GameCenterPlatform.ResetAllAchievements(function(resetResult) {
			Debug.Log((resetResult) ? "Reset done." : "Reset failed.");
		}
		);
	}
}