# Compass

> Interface into compass functionality.

## Definition

* **Type:** Class
* **Namespace:** [UnityEngine](/engine/6000.6/script-reference/unityengine.md)
* **Assembly:** UnityEngine.InputLegacyModule

```csharp
public class Compass
```

## Properties

| Property                                                                                  | Description                                                                                                                                                                                           |
| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [enabled](/engine/6000.6/script-reference/unityengine/compass/enabled.md)                 | Use to enable or disable compass. Note, that if you want Input.compass.trueHeading property to contain a valid value, you must also enable location updates. To do this, call Input.location.Start(). |
| [headingAccuracy](/engine/6000.6/script-reference/unityengine/compass/headingaccuracy.md) | Accuracy of heading reading in degrees.                                                                                                                                                               |
| [magneticHeading](/engine/6000.6/script-reference/unityengine/compass/magneticheading.md) | The heading in degrees relative to the magnetic North Pole. (Read Only)                                                                                                                               |
| [rawVector](/engine/6000.6/script-reference/unityengine/compass/rawvector.md)             | The raw geomagnetic data measured in microteslas. (Read Only)                                                                                                                                         |
| [timestamp](/engine/6000.6/script-reference/unityengine/compass/timestamp.md)             | Indicates the time elapsed since the compass heading was last updated. (Read Only)                                                                                                                    |
| [trueHeading](/engine/6000.6/script-reference/unityengine/compass/trueheading.md)         | The heading in degrees relative to the geographic North Pole. (Read Only)                                                                                                                             |
