# targetTexture

> RenderTexture to draw to when VideoPlayer.renderMode is set to VideoRenderMode.RenderTexture.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine.Video](/engine/6000.3/script-reference/unityengine/video.md)
* **Assembly:** UnityEngine.VideoModule

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

### Remarks

If the [RenderTexture](/engine/6000.3/script-reference/unityengine/rendertexture.md) is of [TextureDimension.Tex2D](/engine/6000.3/script-reference/unityengine/rendering/texturedimension/tex2d.md) the video frames will be drawn directly into this target. For optimal performance, [RenderTexture.width](/engine/6000.3/script-reference/unityengine/rendertexture/width.md) and [RenderTexture.height](/engine/6000.3/script-reference/unityengine/rendertexture/height.md) should match those of the video media exactly.

If the [RenderTexture](/engine/6000.3/script-reference/unityengine/rendertexture.md) is of [TextureDimension.Cube](/engine/6000.3/script-reference/unityengine/rendering/texturedimension/cube.md) the video frames will be interpreted as a cubemap in one of the 4 supported layouts (horizontal or vertical orientation of a cross or strip layout) based on video aspect ratio. The cubemap faces of the video frame are drawn to the 6 faces of the [RenderTexture](/engine/6000.3/script-reference/unityengine/rendertexture.md). For a one-to-one pixel mapping, [RenderTexture.width](/engine/6000.3/script-reference/unityengine/rendertexture/width.md) and [RenderTexture.height](/engine/6000.3/script-reference/unityengine/rendertexture/height.md) should match the size of the individual faces contained within the video media's cubemap (eg. for a 2048x1536 horizontal cross cubemap video, the [RenderTexture](/engine/6000.3/script-reference/unityengine/rendertexture.md) cube size should be set to 512x512).
