docs.unity3d.com
    Show / Hide Table of Contents

    Interface IProvidesBodyTracking

    Defines the API for a Body Tracking Provider This functionality provider is responsible for body tracking

    Inherited Members
    IFunctionalityProvider.LoadProvider()
    IFunctionalityProvider.ConnectSubscriber(Object)
    IFunctionalityProvider.UnloadProvider()
    Namespace: Unity.MARS.Providers
    Syntax
    [MovedFrom("Unity.MARS")]
    public interface IProvidesBodyTracking : IFunctionalityProvider

    Methods

    GetBodies(List<MRBody>)

    Get the currently tracked bodies

    Declaration
    void GetBodies(List<MRBody> bodies)
    Parameters
    Type Name Description
    List<MRBody> bodies

    A list of MRRect objects to which the currently tracked bodies will be added

    TrackBody(Vector2)

    Track body at specified position

    Declaration
    void TrackBody(Vector2 position)
    Parameters
    Type Name Description
    Vector2 position

    Events

    bodyAdded

    Called when a body become tracked for the first time

    Declaration
    event Action<MRBody> bodyAdded
    Event Type
    Type Description
    Action<MRBody>

    bodyRemoved

    Called when a tracked body is removed (lost)

    Declaration
    event Action<MRBody> bodyRemoved
    Event Type
    Type Description
    Action<MRBody>

    bodyUpdated

    Called when a tracked body has updated data

    Declaration
    event Action<MRBody> bodyUpdated
    Event Type
    Type Description
    Action<MRBody>
    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