SCNSceneExportProgressHandler
The signature for the block that SceneKit calls during scene export.
Declaration
typealias SCNSceneExportProgressHandler = (Float, (any Error)?, UnsafeMutablePointer<ObjCBool>) -> VoidDiscussion
You specify a block with this signature when calling the write(to:options:delegate:progressHandler:) method in order to receive updates on the progress of the export operation. The block takes the following parameters:
- totalProgress
A number between
0.0and1.0that indicates the progress of the export operation, with0.0indicating that the operation has just begun and1.0indicating the operation has completed.- error
An error encountered during the export process, or
nilif no errors have occurred.- stop
Set
*stopto true inside the block to cancel export.