isLoaded

inline fun <T> isLoaded(path: String): Boolean

Checks whether an asset in the selected path with T type is already loaded. Returns false if the asset is not loaded yet, is unloaded or was never loaded to begin with.

Note that assets that loaded exceptionally (i.e. asset loader threw an exception) will also report as loaded, but trying to obtain their instance will cause rethrowing of that exception, forcing the user to handle it.


fun isLoaded(descriptor: AssetDescriptor<*>): Boolean

Checks whether an asset described with descriptor is already loaded. Returns false if the asset is not loaded yet, is unloaded or was never loaded to begin with.

Note that assets that loaded exceptionally (i.e. asset loader threw an exception) will also report as loaded, but trying to obtain their instance will cause rethrowing of that exception, forcing the user to handle it.


fun isLoaded(identifier: Identifier<*>): Boolean

Checks whether an asset identified with identifier is already loaded. Returns false if the asset is not loaded yet, is unloaded or was never loaded to begin with.

Note that assets that loaded exceptionally (i.e. asset loader threw an exception) will also report as loaded, but trying to obtain their instance will cause rethrowing of that exception, forcing the user to handle it.