docs.unity3d.com
    Show / Hide Table of Contents

    Class IConditionGenericMethods

    Inheritance
    Object
    IConditionGenericMethods
    Namespace: Unity.MARS.Query
    Syntax
    public static class IConditionGenericMethods : object

    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
    Boolean

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

    Type Parameters
    Name Description
    T

    The type of data the condition uses

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023