The signature for the block that SceneKit calls periodically to report progress while loading a scene.
- iOS 8.0+
- macOS 10.8+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 3.0+
You provide a block with this signature when using the
The block takes four parameters:
A floating-point number between
1indicating the overall progress of loading the scene. A value of
0indicates that the loading process has just begun, and a value of
1indicates that the process has completed.
A constant identifying one of the distinct phases of SceneKit’s loading procedure. See
SCNScenefor possible values.
An error object describing any error that has occurred during scene loading, or
nilif no errors has been encountered.
A reference to a Boolean value. Set
YESwithin the block to abort further processing of the scene source’s contents.