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

> Draws the default Terrain Layer static preview.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/7000.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 project-relative path of the asset to operate on.**** (\[Object\[]]\(/engine/7000.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 in pixels.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Height of the created texture in pixels.

### Returns

| Type                                                                  | Description                                                                                              |
| --------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- |
| [Texture2D](/engine/7000.0/script-reference/unityengine/texture2d.md) | The generated static preview `Texture2D` of the Terrain Layer, or `null` if Unity uses the default icon. |

### Remarks

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