Asset
data class Asset<T>(val descriptor: AssetDescriptor<T>, val identifier: Identifier<T> = descriptor.toIdentifier(), val reference: CompletableDeferred<T> = CompletableDeferred(), val dependencies: List<Asset<*>>, val loader: Loader<T>, var referenceCount: Int = 0)
Container for a single asset of type T managed by AssetStorage.
Constructors
Properties
Link copied to clipboard
Lists asset dependencies that require loading.
Link copied to clipboard
Stores asset loading data.
Link copied to clipboard
Unique identifier of the asset.
Link copied to clipboard
Control variable. Lists how many times the asset is referenced by other assets as dependency or by direct manual load requests.