docs.unity3d.com
    目次を表示する/隠す

    Class UsesMarsBodyTrackingMethods

    Inheritance
    Object
    UsesMarsBodyTrackingMethods
    Namespace: Unity.MARS.Providers
    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

    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)