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)
| 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. |