logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Enum AchievementConditionCategory

    The shelf a condition node is picked off, in the vocabulary an author thinks in.

    Namespace: Serenity.Achievements.Infrastructure.Conditions
    Assembly: Serenity.UnityAchievements.Infrastructure.dll
    Syntax
    public enum AchievementConditionCategory
    Remarks

    Lives beside the conditions rather than the authoring editor because AchievementConditionCategoryAttribute decorates condition types compiled into a build, and an attribute can only carry a type its own assembly can see. The enum stays in the runtime assembly for that reason: the four values cost nothing in the player and buy type safety over a bare string on every one of the ten condition attributes — do not move it back to the Editor assembly.

    Fields

    Name Description
    Code

    A rule the project wrote itself.

    Logic

    Other conditions, combined.

    Metrics

    Something was measured: a score, an elapsed time, an accumulated amount.

    Triggers

    Something happened: a signal was dispatched, the game recorded progress.

    In this article
    © 2026 Serenity. All Rights Reserved