docs.unity3d.com
    Show / Hide Table of Contents

    Class UsesMarsBodyTrackingMethods

    Inheritance
    Object
    UsesMarsBodyTrackingMethods
    Namespace: Unity.MARS.Providers
    Syntax
    public static class UsesMarsBodyTrackingMethods : object

    Methods

    GetBodies(IUsesMarsBodyTracking, List<IMarsBody>)

    Get the currently tracked bodies

    Declaration
    public static void GetBodies(this IUsesMarsBodyTracking user, List<IMarsBody> bodies)
    Parameters
    Type Name Description
    IUsesMarsBodyTracking user

    The functionality user

    List<IMarsBody> bodies

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

    SubscribeBodyAdded(IUsesMarsBodyTracking, Action<IMarsBody>)

    Subscribe to the bodyAdded event, which is called whenever a body becomes tracked for the first time

    Declaration
    public static void SubscribeBodyAdded(this IUsesMarsBodyTracking user, Action<IMarsBody> bodyAdded)
    Parameters
    Type Name Description
    IUsesMarsBodyTracking user

    The functionality user

    Action<IMarsBody> bodyAdded

    The delegate to subscribe

    SubscribeBodyRemoved(IUsesMarsBodyTracking, Action<IMarsBody>)

    Subscribe to the bodyRemoved event, which is called whenever a tracked body is removed (lost)

    Declaration
    public static void SubscribeBodyRemoved(this IUsesMarsBodyTracking user, Action<IMarsBody> bodyRemoved)
    Parameters
    Type Name Description
    IUsesMarsBodyTracking user

    The functionality user

    Action<IMarsBody> bodyRemoved

    The delegate to subscribe

    SubscribeBodyUpdated(IUsesMarsBodyTracking, Action<IMarsBody>)

    Subscribe to the bodyUpdated event, which is called when a tracked body has updated data

    Declaration
    public static void SubscribeBodyUpdated(this IUsesMarsBodyTracking user, Action<IMarsBody> bodyUpdated)
    Parameters
    Type Name Description
    IUsesMarsBodyTracking user

    The functionality user

    Action<IMarsBody> bodyUpdated

    The delegate to subscribe

    UnsubscribeBodyAdded(IUsesMarsBodyTracking, Action<IMarsBody>)

    Unsubscribe a delegate from the bodyAdded event

    Declaration
    public static void UnsubscribeBodyAdded(this IUsesMarsBodyTracking user, Action<IMarsBody> bodyAdded)
    Parameters
    Type Name Description
    IUsesMarsBodyTracking user

    The functionality user

    Action<IMarsBody> bodyAdded

    The delegate to unsubscribe

    UnsubscribeBodyRemoved(IUsesMarsBodyTracking, Action<IMarsBody>)

    Unsubscribe a delegate from the bodyRemoved event

    Declaration
    public static void UnsubscribeBodyRemoved(this IUsesMarsBodyTracking user, Action<IMarsBody> bodyRemoved)
    Parameters
    Type Name Description
    IUsesMarsBodyTracking user

    The functionality user

    Action<IMarsBody> bodyRemoved

    The delegate to unsubscribe

    UnsubscribeBodyUpdated(IUsesMarsBodyTracking, Action<IMarsBody>)

    Unsubscribe a delegate from the bodyUpdated event

    Declaration
    public static void UnsubscribeBodyUpdated(this IUsesMarsBodyTracking user, Action<IMarsBody> bodyUpdated)
    Parameters
    Type Name Description
    IUsesMarsBodyTracking user

    The functionality user

    Action<IMarsBody> bodyUpdated

    The delegate to unsubscribe

    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