Class UnityAchievementDefinition
One authored achievement: what the player sees, what it awards, what unlocks it, and which
storefront identifiers it is mirrored under.
Inheritance
UnityAchievementDefinition
Assembly: Serenity.UnityAchievements.Infrastructure.dll
Syntax
public class UnityAchievementDefinition : ScriptableObject, IFoundationSettings
Constructors
UnityAchievementDefinition()
Declaration
public UnityAchievementDefinition()
Fields
Condition
Declaration
public AchievementCondition Condition
Field Value
DescriptionKey
Declaration
public string DescriptionKey
Field Value
DisplayOrder
Declaration
Field Value
EpicAchievementId
Declaration
public string EpicAchievementId
Field Value
Grade
Declaration
Field Value
Guid
Declaration
Field Value
| Type |
Description |
| string |
GUID for this achievement asset.
|
Icon
Declaration
Field Value
Id
Declaration
Field Value
| Type |
Description |
| string |
Unique identifier for this achievement. Also the key every unlock row is stored under.
|
IsHidden
Declaration
Field Value
IsTranslating
Declaration
public bool IsTranslating
Field Value
NameKey
Declaration
Field Value
Points
Declaration
Field Value
ProgressTarget
Declaration
public long ProgressTarget
Field Value
PsnTrophyId
Declaration
public string PsnTrophyId
Field Value
SteamApiName
Declaration
public string SteamApiName
Field Value
XboxAchievementId
Declaration
public string XboxAchievementId
Field Value
Methods
Describes this achievement to the engine-free authoring rules, so the same checks can run
wherever the achievement is read: the inspector does today, and the project validator and
a headless CI pass are meant to once a later slice wires them up.
Declaration
public AchievementAuthoringSnapshot ToAuthoringSnapshot(IReadOnlyCollection<AchievementPlatformKind> enabledPlatforms = null)
Parameters
Returns
TryToDefinition(out AchievementDefinition, out string)
Converts this asset into the runtime definition the achievement registry is built from,
or explains why it cannot be.
Declaration
public bool TryToDefinition(out AchievementDefinition definition, out string error)
Parameters
| Type |
Name |
Description |
| AchievementDefinition |
definition |
The runtime definition, or null when this asset is not usable.
|
| string |
error |
What is wrong with this asset, or null when it is usable.
|
Returns
| Type |
Description |
| bool |
true when the definition was produced.
|
Remarks
Implements