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

    Class IUsesCompassHeadingMethods

    Inheritance
    Object
    IUsesCompassHeadingMethods
    Namespace: Unity.MARS.Providers
    Syntax
    [MovedFrom("Unity.MARS")]
    public static class IUsesCompassHeadingMethods

    Methods

    GetHeading(IUsesCompassHeading)

    Get the current compass heading

    Declaration
    public static float GetHeading(this IUsesCompassHeading obj)
    Parameters
    Type Name Description
    IUsesCompassHeading obj
    Returns
    Type Description
    Single

    The compass heading

    SubscribeHeadingUpdated(IUsesCompassHeading, Action<Single>)

    Subscribe to the headingUpdated event, which is called when the compass heading changes

    Declaration
    public static void SubscribeHeadingUpdated(this IUsesCompassHeading obj, Action<float> headingUpdated)
    Parameters
    Type Name Description
    IUsesCompassHeading obj
    Action<Single> headingUpdated

    The delegate to subscribe

    UnsubscribeHeadingUpdated(IUsesCompassHeading, Action<Single>)

    Unsubscribe from the headingUpdated event, which is called when the compass heading changes

    Declaration
    public static void UnsubscribeHeadingUpdated(this IUsesCompassHeading obj, Action<float> headingUpdated)
    Parameters
    Type Name Description
    IUsesCompassHeading obj
    Action<Single> headingUpdated

    The delegate to unsubscribe

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