get
Returns a loaded asset of type T loaded from selected path or throws MissingAssetException if the asset is not loaded yet or was never scheduled for loading. Rethrows any exceptions encountered during asset loading.
T is the type of the asset. Must match the type requested during loading. path must match the asset path passed during loading.
This method might throw the following exceptions:
- MissingAssetException if the asset of T type with the given path was never added with load or add. 
- UnloadedAssetException if the asset was already unloaded asynchronously. 
- MissingLoaderException if the AssetLoader for asset of requested type is not registered. 
- InvalidLoaderException if the AssetLoader implementation of requested type is invalid. 
- AssetLoadingException if the AssetLoader has thrown an exception during loading. 
- MissingDependencyException is the AssetLoader is unable to obtain an instance of asset's dependency. 
- UnsupportedMethodException is the AssetLoader uses unsupported operation on AssetManagerWrapper. 
See also getOrNull and getAsync.
Returns a loaded asset of type T described by descriptor or throws MissingAssetException if the asset is not loaded yet or was never scheduled for loading. Rethrows any exceptions encountered during asset loading.
T is the type of the asset. Must match the type requested during loading. descriptor contains the asset data. See getAssetDescriptor.
This method might throw the following exceptions:
- MissingAssetException if the asset of T type described by descriptor was never added with load or add. 
- UnloadedAssetException if the asset was already unloaded asynchronously. 
- MissingLoaderException if the AssetLoader for asset of requested type is not registered. 
- InvalidLoaderException if the AssetLoader implementation of requested type is invalid. 
- AssetLoadingException if the AssetLoader has thrown an exception during loading. 
- MissingDependencyException is the AssetLoader is unable to obtain an instance of asset's dependency. 
- UnsupportedMethodException is the AssetLoader uses unsupported operation on AssetManagerWrapper. 
See also getOrNull and getAsync.
Returns a loaded asset of type T identified by identifier or throws MissingAssetException if the asset is not loaded yet or was never scheduled for loading. Rethrows any exceptions encountered during asset loading.
T is the type of the asset. Must match the type requested during loading. identifier uniquely identifies a file by its path and type. See Identifier.
This method might throw the following exceptions:
- MissingAssetException if the asset of T type identified by identifier was never added with load or add. 
- UnloadedAssetException if the asset was already unloaded asynchronously. 
- MissingLoaderException if the AssetLoader for asset of requested type is not registered. 
- InvalidLoaderException if the AssetLoader implementation of requested type is invalid. 
- AssetLoadingException if the AssetLoader has thrown an exception during loading. 
- MissingDependencyException is the AssetLoader is unable to obtain an instance of asset's dependency. 
- UnsupportedMethodException is the AssetLoader uses unsupported operation on AssetManagerWrapper.