Delegate ImageWriterCallback

ImageWriterCallback delegate

Callback to control the image writing behavior.

public delegate string ImageWriterCallback(WriteContext context, string assetName, 
    MemoryImage image);
ParameterTypeDescription
contextWriteContextThe current model writing context.
assetNameStringThe default gltf URI used to reference the image.
imageMemoryImageThe image to write.

Return Value

The final glTF URI. If it didn’t change, return the value of

.

See Also