Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced

AssetImportWriter<TAsset>.WriteArtifactAsync

Section titled “AssetImportWriter<TAsset>.WriteArtifactAsync”
  • Writes one immutable named artifact output.

API: engine
Project: Inno.Assets.Pipeline

public System.Threading.Tasks.ValueTask Inno.Assets.Pipeline.AssetImportWriter<TAsset>.WriteArtifactAsync(string outputName, System.ReadOnlyMemory<byte> bytes, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Inno.Assets.Pipeline.AssetDeploymentScope deploymentScope = Inno.Assets.Pipeline.AssetDeploymentScope.Runtime)

Parameter outputName: The stable output name.

Parameter bytes: The output content.

Parameter cancellationToken: Cancellation for the write operation.

Parameter deploymentScope: Whether this output is retained in runtime packages. Runtime payload and asset state cannot be authoring-only.

A completed operation after the output has been staged.