ドキュメント

Unity Engine

Unity Engine

LoadAssetAsync(CancellationToken)

Loads the asset assigned to this entry.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: Unity.Localization
  • Assembly: UnityEngine.LocalizationRuntimeModule
Awaitable<Object> LoadAssetAsync(CancellationToken cancellationToken)

Parameters

cancellationToken

A token that cancels the load.

Returns

Type

Description

Awaitable<Object>An awaitable that resolves to the loaded asset, or
null
on a miss.

Remarks

The load is resolved by the concrete kind. The result is
null
when no asset is assigned or it cannot be resolved. Release the returned asset with IAssetEntry.ReleaseAsset once you are finished with it.