docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ConditionsAnalyzer

    Inheritance
    object
    ConditionsAnalyzer
    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.dll
    Syntax
    [MovedFrom("Unity.MARS")]
    public static class ConditionsAnalyzer

    Methods

    GetConditionTypesForTrait(string, List<Type>)

    Finds types of conditions that test against a given trait

    Declaration
    public static bool GetConditionTypesForTrait(string traitName, List<Type> conditionTypes)
    Parameters
    Type Name Description
    string traitName

    Name of the trait that conditions must test against

    List<Type> conditionTypes

    List that will be filled out with types of conditions that use the trait

    Returns
    Type Description
    bool

    True if any condition types were found, false otherwise

    GetRelationTypesForChild1Trait(string, List<Type>)

    Finds types of relations that test against a given trait for their first child

    Declaration
    public static bool GetRelationTypesForChild1Trait(string traitName, List<Type> relationTypes)
    Parameters
    Type Name Description
    string traitName

    Name of the trait that relations must test against for their first child

    List<Type> relationTypes

    List that will be filled out with types of relations that use the trait

    Returns
    Type Description
    bool

    True if any relation types were found, false otherwise

    GetRelationTypesForChild2Trait(string, List<Type>)

    Finds types of relations that test against a given trait for their second child

    Declaration
    public static bool GetRelationTypesForChild2Trait(string traitName, List<Type> relationTypes)
    Parameters
    Type Name Description
    string traitName

    Name of the trait that relations must test against for their second child

    List<Type> relationTypes

    List that will be filled out with types of relations that use the trait

    Returns
    Type Description
    bool

    True if any relation types were found, false otherwise

    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)