ドキュメント

Unity Engine

Unity Engine

IsLoadingAssetPreview(EntityId)

Checks whether the preview for a specific asset is still loading. Previews load asynchronously, so poll this and repaint when it finishes.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public static bool IsLoadingAssetPreview(EntityId entityId)

Parameters

entityId

EntityId of the asset a preview was requested for by AssetPreview.GetAssetPreview. Obtain it by calling Object.GetEntityId() on the same Object you passed to AssetPreview.GetAssetPreview(Object).

Returns

Type

Description

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