docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ConditionUtils

    A utility class for conditions used in Conditional nodes.

    Inheritance
    object
    ConditionUtils
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Behavior
    Assembly: Unity.Behavior.dll
    Syntax
    public static class ConditionUtils

    Methods

    Evaluate(object, BlackboardVariable<ConditionOperator>, object)

    Evaluates the operation from a condition.

    Declaration
    public static bool Evaluate(object leftOperand, BlackboardVariable<ConditionOperator> conditionOperator, object rightOperand)
    Parameters
    Type Name Description
    object leftOperand

    The left side value that is being compared.

    BlackboardVariable<ConditionOperator> conditionOperator

    The condition operator.

    object rightOperand

    The right side value that is being compared.

    Returns
    Type Description
    bool

    The result of the operation.

    Evaluate<CompareType>(CompareType, BlackboardVariable<ConditionOperator>, CompareType)

    Evaluates the operation from a condition.

    Declaration
    public static bool Evaluate<CompareType>(CompareType leftOperand, BlackboardVariable<ConditionOperator> conditionOperator, CompareType rightOperand) where CompareType : unmanaged, IComparable
    Parameters
    Type Name Description
    CompareType leftOperand

    The left side value that is being compared.

    BlackboardVariable<ConditionOperator> conditionOperator

    The condition operator.

    CompareType rightOperand

    The right side value that is being compared.

    Returns
    Type Description
    bool

    The result of the operation.

    Type Parameters
    Name Description
    CompareType

    The type of value being compared. This must be unmanaged IComparable.

    In This Article
    • Methods
      • Evaluate(object, BlackboardVariable<ConditionOperator>, object)
      • Evaluate<CompareType>(CompareType, BlackboardVariable<ConditionOperator>, CompareType)
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)