# TryGetRightEyeOpenAmount(out float)

> Gets a value that represents the how far the right eye is open.

## Definition

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

## TryGetRightEyeOpenAmount(float)

```csharp
public bool TryGetRightEyeOpenAmount(out float openAmount)
```

### Parameters

**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)):&#x20;

### Returns

| Type                                                          | Description                                                                             |
| ------------------------------------------------------------- | --------------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | true if eyes can be queried for the amount that the right eye is open; otherwise false. |
