Struct AchievementPlatformTableColumn
One storefront's column in the platform table: what it is called, which serialized field it edits, and whether the project ships there at all.
Inherited Members
Namespace: Serenity.Achievements.Infrastructure.Editor.Studio
Assembly: Serenity.UnityAchievements.Infrastructure.Editor.dll
Syntax
public readonly struct AchievementPlatformTableColumn
Remarks
The serialized field name travels with the column so the table can bind a cell through the
achievement's own SerializedObject. That is what makes every edit undoable and what keeps the
table from becoming a second writer of these four fields beside the detail pane.
Constructors
AchievementPlatformTableColumn(AchievementPlatformKind, string, string, bool)
Creates a column.
Declaration
public AchievementPlatformTableColumn(AchievementPlatformKind platform, string header, string propertyName, bool isEnabledInProject)
Parameters
| Type | Name | Description |
|---|---|---|
| AchievementPlatformKind | platform | The storefront. |
| string | header | The column heading. |
| string | propertyName | The serialized field it binds to. |
| bool | isEnabledInProject | Whether the project ships on that storefront. |
Fields
Header
Declaration
public readonly string Header
Field Value
| Type | Description |
|---|---|
| string | The column heading. |
IsEnabledInProject
Declaration
public readonly bool IsEnabledInProject
Field Value
| Type | Description |
|---|---|
| bool | Whether any achievement settings asset in the project assigns this storefront. |
Platform
Declaration
public readonly AchievementPlatformKind Platform
Field Value
| Type | Description |
|---|---|
| AchievementPlatformKind | The storefront this column edits identifiers for. |
PropertyName
Declaration
public readonly string PropertyName
Field Value
| Type | Description |
|---|---|
| string | The name of the serialized field on UnityAchievementDefinition it binds to. |