Enumeration

SCNSceneSourceStatus

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

Declaration

typedef enum SCNSceneSourceStatus : NSInteger {
    ...
} 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

SCNSceneSourceStatusError

An error occurred when SceneKit attempted to load the scene.

SCNSceneSourceStatusParsing

SceneKit has begun deserializing the source file.

SCNSceneSourceStatusValidating

SceneKit has begun validating the scene file’s format.

SCNSceneSourceStatusProcessing

SceneKit has begun generating scene graph objects from the scene file’s contents.

SCNSceneSourceStatusComplete

SceneKit has successfully finished loading the scene file’s contents.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software