Version: 1.7
LanguageEnglish
  • C#

InstantAssetTable.LoadAssetAsync

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public InstantAssetRequest LoadAssetAsync(string path);

Declaration

public InstantAssetRequest LoadAssetAsync(string path);

Declaration

public InstantAssetRequest LoadAssetAsync(string path, Type type);

Parameters

path Path of the Asset. The path is a relative path based on the Assets folder in the Editor, for example, "Assets/material/test.mat".
type Type of Asset.

Returns

InstantAssetRequest Asynchronous load request. Use InstantAssetRequest.asset to get asset object.

Description

Asynchronously loads an Asset from the InstantAssetTable.