API reference

ProgressCallback Function

A function pointer that provides information about the current progress on a long-running operation.
This function will be called periodically by long-running operations to report progress to the GUI.

Signature

delegate bool Meta.XR.Acoustics.ProgressCallback(IntPtr userData, string description, float progress)

Parameters

userData: IntPtr A pointer to any data the user would like to be accessible during the callback
description: string The string is a NULL-terminated ASCII description of the current task.
progress: float The progress value is in the range [0,1] and indicates the approximate fraction of the operation that has been performed so far, and could be used to display a progress bar.

Returns

delegate bool indicates whether or not to continue processing (non-zero -> continue, zero -> cancel).