getAsset

inline fun <Type : Any> AssetManager.getAsset(path: String): Type

Return

requested asset instance.

Parameters

path

path of the asset. Note that the asset must have been already scheduled for loading and fully loaded for this method to work.

Throws

GdxRuntimeException

if asset was not loaded yet.