logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class RangeCondition

    Condition that is met when a state value is within a specified range.

    Inheritance
    object
    Condition
    RangeCondition
    Inherited Members
    Condition.Reset()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.ProceduralExpression.Infrastructure.Conditions
    Assembly: Serenity.UnityProceduralExpression.Infrastructure.dll
    Syntax
    public class RangeCondition : Condition

    Constructors

    RangeCondition()

    Declaration
    public RangeCondition()

    Fields

    inclusive

    Declaration
    public bool inclusive
    Field Value
    Type Description
    bool

    maxValue

    Declaration
    public float maxValue
    Field Value
    Type Description
    float

    minValue

    Declaration
    public float minValue
    Field Value
    Type Description
    float

    stateKey

    Declaration
    public UnityStateKey stateKey
    Field Value
    Type Description
    UnityStateKey

    Properties

    DisplayName

    Gets the display name for this condition type (used in dropdown).

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

    Methods

    IsMet(in UnityProceduralContext)

    Evaluates whether this condition is currently met.

    Declaration
    public override bool IsMet(in UnityProceduralContext ctx)
    Parameters
    Type Name Description
    UnityProceduralContext ctx

    The procedural context containing state and time information.

    Returns
    Type Description
    bool

    True if the condition is met, false otherwise.

    Overrides
    Condition.IsMet(in UnityProceduralContext)

    Validate()

    Validates the condition configuration.

    Declaration
    public override string Validate()
    Returns
    Type Description
    string

    Error message if invalid, null if valid.

    Overrides
    Condition.Validate()
    In this article
    © 2026 Serenity. All Rights Reserved