# RenderStaticPreview(int, int)

> Creates a texture preview to override Editor.RenderStaticPreview. The current MeshPreview.mesh will be drawn.

## Definition

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

```csharp
public Texture2D RenderStaticPreview(int width, int height)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The width to render the texture.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The height to render the texture.

### Returns

| Type                                                                  | Description                                                           |
| --------------------------------------------------------------------- | --------------------------------------------------------------------- |
| [Texture2D](/engine/6000.5/script-reference/unityengine/texture2d.md) | Returns a rendered texture of the current mesh with default settings. |
