# GetRenderTexture(uint)

> Given the UnityXRRenderTextureID returned by IUnityXRDisplayInterface::CreateTexture, return the managed UnityEngine.RenderTexture instance.

## Definition

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

```csharp
public RenderTexture GetRenderTexture(uint unityXrRenderTextureId)
```

### Parameters

**** (\[uint]\(https\://learn.microsoft.com/dotnet/api/system.uint32)): The ID number identifying the render texture.

### Returns

| Type                                                                          | Description                                                                                |
| ----------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------ |
| [RenderTexture](/engine/6000.7/script-reference/unityengine/rendertexture.md) | The managed UnityEngine.RenderTexture instance associated with the UnityXRRenderTextureID. |
