docs.unity3d.com
    Show / Hide Table of Contents

    Class HasPoseCondition

    Represents a situation that depends on the existence of a pose

    Inheritance
    Object
    ConditionBase
    Condition
    Condition<Pose>
    HasPoseCondition
    Inherited Members
    Condition.traitName
    ConditionBase.proxy
    ConditionBase.drawWarning
    ConditionBase.OnValidate()
    Namespace: Unity.MARS.Conditions
    Syntax
    public class HasPoseCondition : Condition<Pose>, ISimulatable, ICondition<Pose>, ICondition, IConditionBase, IRequiresTraits<Pose>, IRequiresTraits

    Methods

    GetRequiredTraits()

    Get the TraitRequirements that are required by this object

    Declaration
    public override TraitRequirement[] GetRequiredTraits()
    Returns
    Type Description
    TraitRequirement[]

    The required traits

    Overrides
    Condition.GetRequiredTraits()

    RateDataMatch(ref Pose)

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

    Declaration
    public override float RateDataMatch(ref Pose data)
    Parameters
    Type Name Description
    Pose data
    Returns
    Type Description
    Single

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

    Overrides
    Unity.MARS.Condition<Pose>.RateDataMatch(Pose)

    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