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

Method LoadAsyncInternal

Source/Engine/Content/Content.cs:88–92  ·  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. Internal path to the asset. Relative to the Engine startup folder. Type of the asset to load. Includes any asset types derived from th

(string internalPath)

Source from the content-addressed store, hash-verified

86 /// <typeparam name="T">Type of the asset to load. Includes any asset types derived from the type.</typeparam>
87 /// <returns>Asset instance if loaded, null otherwise.</returns>
88 [HideInEditor]
89 public static T LoadAsyncInternal<T>(string internalPath) where T : Asset
90 {
91 return (T)LoadAsyncInternal(internalPath, typeof(T));
92 }
93
94 /// <summary>
95 /// 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

LoadAsyncInternalFunction · 0.85

Tested by

no test coverage detected