CodeSmile AssetDatabase 1.9
Unity's AssetDatabase in enjoyable, consistent, concise, convenient, comprehensible, safe, documented form.
Loading...
Searching...
No Matches

◆ LoadAsync()

static AssetDatabaseLoadOperation LoadAsync ( [NotNull] Path path,
Int64 localFileId )
static

Loads an object and its dependencies asynchronously.

Available in Unity 2022.2 or newer. In previous versions throws a NotSupportedException.

Parameters
pathThe path to an asset file.
localFileIdThe local file ID of the (sub) asset. I'm sorry but this is what Unity requires.
Returns
An AssetDatabaseLoadOperation to track progress.
See also

Definition at line 460 of file Asset.File.cs.

461 {
462#if UNITY_2022_2_OR_NEWER
463 return AssetDatabase.LoadObjectAsync(path, localFileId);
464#else
465 throw new NotSupportedException("AssetDatabase.LoadObjectAsync not available in this editor version");
466#endif
467 }