Skip to content
API referenceDevelopmentEditor scriptingEngine ccf7d03f
Synced

AssetImportWriter<TAsset>.WriteArtifactAsync

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

API: scripting
Project: Inno.Assets.Pipeline
Scope: Editor

public System.Threading.Tasks.ValueTask InnoEditor.Assets.AssetImportWriter<TAsset>.WriteArtifactAsync(string outputName, System.ReadOnlyMemory<byte> bytes, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), InnoEditor.Assets.AssetDeploymentScope deploymentScope = InnoEditor.Assets.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.