logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class OrCondition

    Met as soon as any child is met.

    Inheritance
    object
    CompositeAchievementCondition
    OrCondition
    Inherited Members
    CompositeAchievementCondition.MinimumChildren
    CompositeAchievementCondition.ChildrenFieldName
    CompositeAchievementCondition.Reset()
    CompositeAchievementCondition.Validate()
    CompositeAchievementCondition.CaptureState()
    CompositeAchievementCondition.RestoreState(string)
    CompositeAchievementCondition.CollectSignalTypeNames(ICollection<string>)
    CompositeAchievementCondition.CaptureOwnState()
    CompositeAchievementCondition.RestoreOwnState(string)
    CompositeAchievementCondition.AnyChild(Func<AchievementCondition, bool>)
    CompositeAchievementCondition.Conditions
    CompositeAchievementCondition.Children
    CompositeAchievementCondition.NeedsTick
    CompositeAchievementCondition.PersistsState
    Namespace: Serenity.Achievements.Infrastructure.Conditions
    Assembly: Serenity.UnityAchievements.Infrastructure.dll
    Syntax
    [AchievementConditionCategory(AchievementConditionCategory.Logic)]
    public class OrCondition : CompositeAchievementCondition
    Remarks

    Like AndCondition, every child is evaluated on every pass: a counting child that stops being asked once a sibling wins would lose its tally for the next run.

    Constructors

    OrCondition()

    Creates an empty composite, as Unity's polymorphic serializer does.

    Declaration
    public OrCondition()

    OrCondition(params AchievementCondition[])

    Creates a composite met when any child is met.

    Declaration
    public OrCondition(params AchievementCondition[] children)
    Parameters
    Type Name Description
    AchievementCondition[] children

    The children, any of which satisfies the composite.

    Properties

    DisplayName

    Declaration
    public override string DisplayName { get; }
    Property Value
    Type Description
    string

    Methods

    Describe(bool)

    Declaration
    public override string Describe(bool isNested)
    Parameters
    Type Name Description
    bool isNested
    Returns
    Type Description
    string

    GetProgress(in AchievementEvaluationContext)

    Declaration
    public override AchievementConditionProgress GetProgress(in AchievementEvaluationContext context)
    Parameters
    Type Name Description
    AchievementEvaluationContext context
    Returns
    Type Description
    AchievementConditionProgress

    IsMet(in AchievementEvaluationContext)

    Declaration
    public override bool IsMet(in AchievementEvaluationContext context)
    Parameters
    Type Name Description
    AchievementEvaluationContext context
    Returns
    Type Description
    bool
    In this article
    © 2026 Serenity. All Rights Reserved