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