Contents

SCNSceneSourceStatus

Constants identifying phases of SceneKit’s scene loading process, used in a Scnscenesourcestatushandler block.

Declaration

enum SCNSceneSourceStatus

Overview

Use the information provided by these constants to describe the scene loading process in your app’s user interface. Because this enumeration leaves room for more detailed progress reports, you should compare the status parameter of a SCNSceneSourceStatusHandler block against these values for ordering, not for equality, as in the following example handler:

SCNSceneSourceStatusHandler myHandler =
^(float totalProgress, SCNSceneSourceStatus status, NSError *error, BOOL *stop) {
    if (status >= SCNSceneSourceStatusProcessing && status < SCNSceneSourceStatusComplete)
        myProgressLabel.stringValue = @"Processing";
};

Topics

Constants

Initializers

See Also

Constants