docs.unity3d.com
    Show / Hide Table of Contents

    Class ConditionsAnalyzer

    Inheritance
    Object
    ConditionsAnalyzer
    Namespace: Unity.MARS.Query
    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
    Boolean

    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
    Boolean

    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
    Boolean

    True if any relation types were found, false otherwise

    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