toIdentifier

Converts this AssetDescriptor to an AssetStorage. Copies AssetDescriptor.type to Identifier.type and AssetDescriptor.fileName to Identifier.path.

Note that loading parameters from AssetDescriptor.parameters are ignored. If the returned Identifier is used to load an asset, and the asset requires specific loading instructions, make sure to pass the loading parameters to the AssetStorage.load method.

Similarly, AssetDescriptor.file is not used by the Identifier. Instead, AssetDescriptor.fileName will be used to resolve the file using AssetStorage.fileResolver. If a FileHandle of a different type is required, use AssetDescriptor for loading instead.