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

Function Load

Source/Engine/Content/Content.h:256–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

254 /// <returns>Asset instance if loaded, null otherwise.</returns>
255 template<typename T>
256 static T* Load(const Guid& id, double timeoutInMilliseconds = 30000.0)
257 {
258 auto asset = LoadAsync<T>(id);
259 if (asset && !asset->WaitForLoaded(timeoutInMilliseconds))
260 return asset;
261 return nullptr;
262 }
263
264 /// <summary>
265 /// 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 15

LoadMethod · 0.50
LoadMethod · 0.50
LoadMethod · 0.50
UpdateMeshMethod · 0.50
UpdateMeshMethod · 0.50
loadMethod · 0.50
ReloadMethod · 0.50
ChangeAssetIDMethod · 0.50
LoadMethod · 0.50
LoadMethod · 0.50
InitMethod · 0.50
LoadMethod · 0.50

Calls 1

WaitForLoadedMethod · 0.80

Tested by 1

PerformMethod · 0.40