IAchievement
Information for a user's achievement.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Interface
- Namespace: UnityEngine.SocialPlatforms
- Assembly: UnityEngine.GameCenterModule
public interface IAchievement
Remarks
This defines the relation between a particular achievement (described by IAchievementDescription) and the local user, what progress they have, last date they reported progress and so on.
Use Social.CreateAchievement to create an instance of this object.
Properties
Property | Description |
|---|---|
| completed | Set to true when percentCompleted is 100.0. |
| hidden | This achievement is currently hidden from the user. |
| id | The unique identifier of this achievement. |
| lastReportedDate | Set by server when percentCompleted is updated. |
| percentCompleted | Progress for this achievement. |
Methods
Method | Description |
|---|---|
| ReportProgress | Send notification about progress on this achievement. |