docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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.Providers
    Assembly: Unity.MARS.Interfaces.dll
    Syntax
    [MovedFrom("Unity.MARS")]
    public interface IProvidesCompassHeading : IFunctionalityProvider

    Methods

    GetHeading()

    Get the current compass heading

    Declaration
    float GetHeading()
    Returns
    Type Description
    float

    The compass heading

    Events

    headingUpdated

    Called when the compass heading changes

    Declaration
    event Action<float> headingUpdated
    Event Type
    Type Description
    Action<float>
    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)