AssetProvider
Provides helper functions to load and prepare assets without having to use null
or lateinit
.
Constructors
Types
Functions
Link copied to clipboard
Link copied to clipboard
inline suspend fun <T : Any> loadSuspending(file: VfsFile, parameters: GameAssetParameters = EmptyGameAssetParameter()): GameAsset<T>
suspend fun <T : Any> loadSuspending(file: VfsFile, clazz: KClass<T>, parameters: GameAssetParameters = EmptyGameAssetParameter()): GameAsset<T>
Loads an asset in a suspending function.
Link copied to clipboard
Properties
Link copied to clipboard
Calls update to get the latest assets loaded to determine if is has been fully loaded.