Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

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

IAchievement

Namespace: UnityEngine.SocialPlatforms

/

Description

Information for a users achievement.

This defines the relation between a particular achievement (described by IAchievementDescription) and the local user, what progress he has, last date he reported progress and so on.

Use Social.CreateAchievement to create an instance of this object.

Variables

completedSet to true when percentCompleted is 100.0.
hiddenThis achievement is currently hidden from the user.
idThe unique identifier of this achievement.
lastReportedDateSet by server when percentCompleted is updated.
percentCompletedProgress for this achievement.

Functions

ReportProgressSend notification about progress on this achievement.