docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class UsesMarsBodyTrackingMethods

    Inheritance
    object
    UsesMarsBodyTrackingMethods
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.MARS.Providers
    Assembly: Unity.MARS.Interfaces.dll
    Syntax
    [MovedFrom("Unity.MARS")]
    public static class UsesMarsBodyTrackingMethods

    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

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)