# IsLoadingAssetPreview(EntityId)

> 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.7/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public static bool IsLoadingAssetPreview(EntityId entityId)
```

### Parameters

**** (\[EntityId]\(/engine/6000.7/script-reference/unityengine/entityid)): EntityId of the asset a preview was requested for by [AssetPreview.GetAssetPreview](/engine/6000.7/script-reference/unityeditor/assetpreview/getassetpreview.md). Obtain it by calling [Object.GetEntityId()](/engine/6000.7/script-reference/unityengine/object/getentityid.md) on the same Object you passed to [AssetPreview.GetAssetPreview(Object)](/engine/6000.7/script-reference/unityeditor/assetpreview/getassetpreview.md#getassetpreview\(object\)).

### 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. |
