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

> Draws the default Terrain Layer static preview.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.6/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)): **** (\[Object\[]]\(/engine/6000.6/script-reference/unityengine/object)): **** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): **** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)):&#x20;

### Returns

| Type                                                                  | Description |
| --------------------------------------------------------------------- | ----------- |
| [Texture2D](/engine/6000.6/script-reference/unityengine/texture2d.md) |             |

### Remarks

Additional Resources: [Editor.RenderStaticPreview](/engine/6000.6/script-reference/unityeditor/editor/renderstaticpreview.md).
