docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class IConditionGenericMethods

    Inheritance
    object
    IConditionGenericMethods
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.MARS.Query
    Assembly: Unity.MARS.Interfaces.dll
    Syntax
    public static class IConditionGenericMethods

    Methods

    PassesCondition<T>(ICondition<T>, ref T)

    Collapses a condition's match rating into a pass/fail.

    Declaration
    public static bool PassesCondition<T>(this ICondition<T> condition, ref T value)
    Parameters
    Type Name Description
    ICondition<T> condition

    The condition to evaluate

    T value

    The data being filtered against

    Returns
    Type Description
    bool

    True if the given trait data passes the filter function, false otherwise

    Type Parameters
    Name Description
    T

    The type of data the condition uses

    In This Article
    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)