# XRFoveationFeature

This `OpenXRInteractionFeature` configures the ` XR_FB_foveation`

` extension at OpenXR runtime. `

## `Summary`

### `Inheritance`

`Inherits from: ``OpenXRFeature`

|                                                                                                                                                                                                           ### Public attributes                                                                                                                                                                                                           ||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------|
| [ExtensionString](https://developer.android.com/develop/xr/unity/reference/class/Google/XR/Extensions/XRFoveationFeature#extensionstring)` = "XR_KHR_android_create_instance" + " XR_FB_foveation" + " XR_FB_foveation_configuration" + " XR_FB_swapchain_update_state" + " XR_FB_foveation_vulkan"` | `const string` The OpenXR Extension string.                                                                                         |
| [FeatureId](https://developer.android.com/develop/xr/unity/reference/class/Google/XR/Extensions/XRFoveationFeature#featureid)` = "com.google.xr.extensions.foveation"`                                                                                                                               | `const string` The feature ID string.                                                                                               |
| [UiName](https://developer.android.com/develop/xr/unity/reference/class/Google/XR/Extensions/XRFoveationFeature#uiname)` = "Foveation (Legacy)"`                                                                                                                                                     | `const string` The UI name shows on the XR Plug-in Management panel, help users to understand validation errors and expected fixes. |

|                                                                                                                                                                                                                          ### Public static functions                                                                                                                                                                                                                          ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------|
| [FBSetFoveationLevel](https://developer.android.com/develop/xr/unity/reference/class/Google/XR/Extensions/XRFoveationFeature#fbsetfoveationlevel)`(`[XRFoveationLevel](https://developer.android.com/develop/xr/unity/reference/namespace/Google/XR/Extensions#xrfoveationlevel)` foveationLevel, float verticalOffset, bool foveationDynamic)` | `void` Configures foveation as if you were creating and setting a foveation profile via XrFoveationLevelProfileCreateInfoFB. |

## Public attributes

### ExtensionString

```c#
const string ExtensionString = "XR_KHR_android_create_instance"
                                              + " XR_FB_foveation"
                                              + " XR_FB_foveation_configuration"
                                              + " XR_FB_swapchain_update_state"
                                              + " XR_FB_foveation_vulkan"
```  
The OpenXR Extension string.

Used to check if this extensions is available or enabled.  

### FeatureId

```c#
const string FeatureId = "com.google.xr.extensions.foveation"
```  
The feature ID string.  

### UiName

```c#
const string UiName = "Foveation (Legacy)"
```  
The UI name shows on the XR Plug-in Management panel, help users to understand validation errors and expected fixes.

## Public static functions

### FBSetFoveationLevel

```c#
void FBSetFoveationLevel(
  XRFoveationLevel foveationLevel,
  float verticalOffset,
  bool foveationDynamic
)
```  
Configures foveation as if you were creating and setting a foveation profile via XrFoveationLevelProfileCreateInfoFB.


|                                                                                                                                                                                             Details                                                                                                                                                                                             ||
|------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Parameters | |--------------------|---------------------------------------------------------------------| | `foveationLevel`   | Corresponds to XrFoveationLevelProfileCreateInfoFB::level.          | | `verticalOffset`   | Corresponds to XrFoveationLevelProfileCreateInfoFB::verticalOffset. | | `foveationDynamic` | Corresponds to XrFoveationLevelProfileCreateInfoFB::dynamic.        | |

`
`