Creates a new instance with the given data, which is typically some kind of file reference / URL or an instance of an asset class. If 'data' contains an URL, an equivalent value will be assigned to the 'url' property.
The raw data of the asset. This property often contains an URL; when it's passed to an AssetFactory, loading has already completed, and the property contains a ByteArray with the loaded data.
The file extension of the asset, if the filename or URL contains one.
The mime type of the asset, if loaded from a server.
The name with which the asset should be added to the AssetManager.
The TextureOptions describing how to create a texture, if the asset references one.
The url from which the asset needs to be / has been loaded.
Generated using TypeDoc
The description of an asset to be created by an AssetFactory.