docs.unity3d.com
    显示 / 隐藏目录

    Class ConditionsAnalyzer

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

    返回到顶部
    Copyright © 2023 Unity Technologies — 商标和使用条款
    • 法律条款
    • 隐私政策
    • Cookie
    • 不要出售或分享我的个人信息
    • Your Privacy Choices (Cookie Settings)