기술 자료

Unity Engine

Unity Engine

IsLoadingAssetPreview(int)

Checks whether the preview for a specific asset is still loading. Previews load asynchronously, so poll this and repaint when it finishes.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor
public static bool IsLoadingAssetPreview(int instanceID)

Parameters

instanceID

InstanceID of the asset a preview was requested for by AssetPreview.GetAssetPreview.

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.