docs.unity3d.com
    显示 / 隐藏目录

    Interface IProvidesCompassHeading

    Defines the API for a Compass Heading Provider This functionality provider is responsible for compass headings

    Inherited Members
    IFunctionalityProvider.LoadProvider()
    IFunctionalityProvider.ConnectSubscriber(Object)
    IFunctionalityProvider.UnloadProvider()
    Namespace: Unity.MARS
    Syntax
    public interface IProvidesCompassHeading : IFunctionalityProvider

    Methods

    GetHeading()

    Get the current compass heading

    Declaration
    float GetHeading()
    Returns
    Type Description
    Single

    The compass heading

    Events

    headingUpdated

    Called when the compass heading changes

    Declaration
    event Action<float> headingUpdated
    Event Type
    Type Description
    Action<Single>
    返回到顶部
    Copyright © 2023 Unity Technologies — 商标和使用条款
    • 法律条款
    • 隐私政策
    • Cookie
    • 不要出售或分享我的个人信息
    • Your Privacy Choices (Cookie Settings)