Synced
AssetImportWriter<TAsset>.WriteArtifactAsync
Section titled “AssetImportWriter<TAsset>.WriteArtifactAsync”
- Writes one immutable named artifact output.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Assets.Pipeline
Scope: Editor
Declaration
Section titled “Declaration”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)Parameters
Section titled “Parameters”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.
Returns
Section titled “Returns”A completed operation after the output has been staged.