# IsLoadingAssetPreview(int)

> Checks whether the preview for a specific asset is still loading. Previews load asynchronously, so poll this and repaint when it finishes.

## Definition

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

```csharp
public static bool IsLoadingAssetPreview(int instanceID)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): InstanceID of the asset a preview was requested for by [AssetPreview.GetAssetPreview](/engine/6000.0/script-reference/unityeditor/assetpreview/getassetpreview.md).

### Returns

| Type                                                          | Description                                                                                                                                   |
| ------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the preview for the asset is still loading. Returns false once it has finished loading, or if no preview was requested for the asset. |
