load

fun <T : Any> load(file: VfsFile, clazz: KClass<T>, parameters: GameAssetParameters = EmptyGameAssetParameter()): GameAsset<T>
inline fun <T : Any> load(file: VfsFile, parameters: GameAssetParameters = EmptyGameAssetParameter()): GameAsset<T>

Loads an asset asynchronously.

See also

Parameters

T

concrete class of Any instance that should be loaded.

file

the file to load

parameters

any parameters that need setting when loading the asset