Synced
AssetImporter<TAsset>.ExportAsync
Section titled “AssetImporter<TAsset>.ExportAsync”
- Exports an asset back into source bytes.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Assets.Pipeline
Scope: Editor
Declaration
Section titled “Declaration”protected virtual System.Threading.Tasks.ValueTask<System.ReadOnlyMemory<byte>?> InnoEditor.Assets.AssetImporter<TAsset>.ExportAsync(InnoEditor.Assets.AssetExportContext context, TAsset asset, System.Threading.CancellationToken cancellationToken)Parameters
Section titled “Parameters”Parameter context: The generation-bound source export services.
Parameter asset: The asset to export.
Parameter cancellationToken: Cancellation for the export.
Returns
Section titled “Returns”The source bytes, or null when export is unsupported.