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

Method Load

Source/Engine/Content/Content.cs:113–117  ·  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. The current thread execution is blocked until asset is loaded. Waits until asset will be loaded. It's equivalent to LoadAsync + WaitForLoaded. Asset unique ID. <par

(Guid id, double timeoutInMilliseconds = 30000.0)

Source from the content-addressed store, hash-verified

111 /// <param name="timeoutInMilliseconds">Custom timeout value in milliseconds.</param>
112 /// <returns>Asset instance if loaded, null otherwise</returns>
113 [MethodImpl(MethodImplOptions.AggressiveInlining)]
114 public static Asset Load(Guid id, double timeoutInMilliseconds = 30000.0)
115 {
116 return Load<Asset>(id, timeoutInMilliseconds);
117 }
118
119 /// <summary>
120 /// 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. The current thread execution is blocked until asset is loaded.

Callers 1

runMethod · 0.45

Calls 1

WaitForLoadedMethod · 0.80

Tested by

no test coverage detected