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> |