docs.unity3d.com
    Show / Hide Table of Contents

    Class Condition<T>

    Generic form of Condition, which provides the RateDataMatch method

    Inheritance
    Object
    ConditionBase
    Condition
    Condition<T>
    AlignmentCondition
    BoundedRangeCondition<TData>
    GeoFenceCondition
    HasPoseCondition
    HeightAboveFloorCondition
    MarkerCondition
    SemanticTagCondition
    SimpleTagCondition
    TrackingStateCondition
    ProxyForces
    Inherited Members
    Condition.traitName
    Condition.GetRequiredTraits()
    ConditionBase.proxy
    ConditionBase.drawWarning
    ConditionBase.OnValidate()
    Namespace: Unity.MARS
    Syntax
    public abstract class Condition<T> : Condition, ISimulatable, ICondition<T>, ICondition, IConditionBase, IRequiresTraits<T>, IRequiresTraits
    Type Parameters
    Name Description
    T

    The type of data this condition will be rating

    Methods

    RateDataMatch(ref T)

    Describe how well a given piece of data matches a condition. 0 means the match is unacceptable, 1 means a perfect match

    Declaration
    public abstract float RateDataMatch(ref T data)
    Parameters
    Type Name Description
    T data

    The data to rate

    Returns
    Type Description
    Single

    A number from 0 to 1 indicating how well a piece of data watches this condition

    Implements
    ICondition<T>.RateDataMatch(ref T)

    Extension Methods

    IRequiresTraitsMethods.TryGetTraitValue<T>(IRequiresTraits<T>, Int32, String, out T)
    IRequiresTraitsMethods.TryGetAllTraitsWithSemanticTag<T>(IRequiresTraits<T>, String, String, out Dictionary<Int32, T>)
    IRequiresTraitsMethods.ForEachContextIdWithTrait<T>(IRequiresTraits<T>, String, Action<Int32>)
    IConditionGenericMethods.PassesCondition<T>(ICondition<T>, ref T)
    Back to top
    Terms of use
    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