# GetPreviewTexture()

> Returns a texture with the transcoded clip's current frame. Returns frame 0 when not playing, and frame at current time when playing.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.6/script-reference/unityeditor.md)
* **Assembly:** UnityEditor

```csharp
public Texture GetPreviewTexture()
```

### Returns

| Type                                                              | Description                           |
| ----------------------------------------------------------------- | ------------------------------------- |
| [Texture](/engine/6000.6/script-reference/unityengine/texture.md) | Texture containing the current frame. |
