Class Condition<T1, T2> | MARS | 1.0.1
docs.unity3d.com
    Show / Hide Table of Contents

    Class Condition<T1, T2>

    Base class for conditions that interact with two traits at once

    Inheritance
    Object
    ConditionBase
    Condition<T1, T2>
    Inherited Members
    ConditionBase.proxy
    ConditionBase.drawWarning
    ConditionBase.OnValidate()
    Namespace: Unity.MARS
    Syntax
    public abstract class Condition<T1, T2> : ConditionBase, ISimulatable, ICondition<T1, T2>, IConditionBase where T1 : struct where T2 : struct
    Type Parameters
    Name Description
    T1

    The type of the first trait

    T2

    The type of the second trait

    Properties

    TraitName1

    Declaration
    public string TraitName1 { get; }
    Property Value
    Type Description
    String
    Implements
    ICondition<T1, T2>.TraitName1

    TraitName2

    Declaration
    public string TraitName2 { get; }
    Property Value
    Type Description
    String
    Implements
    ICondition<T1, T2>.TraitName2

    Methods

    RateDataMatch(ref T1, ref T2)

    Declaration
    public abstract float RateDataMatch(ref T1 trait1, ref T2 trait2)
    Parameters
    Type Name Description
    T1 trait1
    T2 trait2
    Returns
    Type Description
    Single
    Implements
    ICondition<T1, T2>.RateDataMatch(ref T1, ref T2)
    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