# targetTexture

> Specifies a Render Texture to render the panel's UI on.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine.UIElements](/engine/6000.5/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
public RenderTexture targetTexture { get; set; }
```

### Remarks

This can be used to display UI on a 3D geometry in the Scene, to perform manual UI post-processing, or render the UI on a MSAA-enabled Render Texture.

When the project color space is linear, you should use a Render Texture whose format is GraphicsFormat.R8G8B8A8\_SRGB.

When the project color space is gamma, you should use a Render Texture whose format is GraphicsFormat.R8G8B8A8\_UNorm.
