# TryGetRotation(out Quaternion)

> Gets the world rotation of the bone.

## Definition

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

## TryGetRotation(Quaternion)

```csharp
public bool TryGetRotation(out Quaternion rotation)
```

### Parameters

**** (\[Quaternion]\(/engine/6000.0/script-reference/unityengine/quaternion)): Quaternion to receive the rotation of the bone in Unity world space.

### Returns

| Type                                                          | Description                                          |
| ------------------------------------------------------------- | ---------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | true if the rotation was retrieved, false otherwise. |
