docs.unity3d.com
    Show / Hide Table of Contents

    Interface IProvidesCompassHeading

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

    Namespace: Unity.MARS.Providers
    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>
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023