docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class IRelationGenericMethods

    Inheritance
    object
    IRelationGenericMethods
    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 IRelationGenericMethods

    Methods

    PassesRelation<T>(IRelation<T>, ref T, ref T)

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

    Declaration
    public static bool PassesRelation<T>(this IRelation<T> relation, ref T child1Value, ref T child2Value)
    Parameters
    Type Name Description
    IRelation<T> relation

    The relation to evaluate

    T child1Value
    T child2Value
    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 relation 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)