# TryRecenter()

> Centers the tracking features on all InputDevice s to the current position and orientation of the head-mounted device.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.XR](/engine/6000.0/script-reference/unityengine/xr.md)
* **Assembly:** UnityEngine.XRModule

```csharp
public bool TryRecenter()
```

### Returns

| Type                                                          | Description                                                                 |
| ------------------------------------------------------------- | --------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the method recenters the XRInputSubsystem. Returns false otherwise. |

### Remarks

This can fail depending on the TrackingOriginMode of the subsystem does not support recentering.
