MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / LoadAsync

Method LoadAsync

Source/Engine/Content/Content.cs:44–47  ·  view source on GitHub ↗

Loads asset to the Content Pool and holds it until it won't be referenced by any object. Returns null if asset is missing. Actual asset data loading is performed on a other thread in async. Asset unique ID. Type of the asset to load. Includes any asset types derived from the type. Asset instance if loaded, null

(Guid id)

Source from the content-addressed store, hash-verified

42 /// <typeparam name="T">Type of the asset to load. Includes any asset types derived from the type.</typeparam>
43 /// <returns>Asset instance if loaded, null otherwise.</returns>
44 public static T LoadAsync<T>(Guid id) where T : Asset
45 {
46 return (T)LoadAsync(id, typeof(T));
47 }
48
49 /// <summary>
50 /// Loads asset to the Content Pool and holds it until it won't be referenced by any object. Returns null if asset is missing. Actual asset data loading is performed on a other thread in async.

Callers

nothing calls this directly

Calls 1

LoadAsyncFunction · 0.85

Tested by

no test coverage detected