# RenderStaticPreview(string, Object[], int, int)

> Creates a texture preview for rendering the Tile asset preview.

## Definition

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

```csharp
public override Texture2D RenderStaticPreview(string assetPath, Object[] subAssets, int width, int height)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The asset to operate on.**** (\[Object\[]]\(/engine/6000.0/script-reference/unityengine/object)): An array of all Assets at assetPath.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Width of the created texture.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Height of the created texture.

### Returns

| Type                                                                  | Description                |
| --------------------------------------------------------------------- | -------------------------- |
| [Texture2D](/engine/6000.0/script-reference/unityengine/texture2d.md) | Generated texture or null. |
