Enumeration

Scene File Consistency Check Error Codes

Error codes that identify errors found during a scene-file-format consistency check.

Declaration

enum : unsigned int {
    ...
};

Overview

If you specify YES for the SCNSceneSourceCheckConsistencyKey when creating or loading from a scene source, SceneKit verifies the scene file against the specification for its file format. SceneKit reports any format verification issues in an NSError object whose code property is one of these values.

For more details about the location and nature of any format validation errors, see the SCNDetailedErrorsKey key in the error’s userInfo dictionary, and the keys listed in Scene File Consistency Error Keys.

Topics

Constants

SCNConsistencyInvalidURIError

The scene file contains an invalid URI (or URL).

SCNConsistencyInvalidCountError

The scene file contains an invalid number of scenes.

SCNConsistencyInvalidArgumentError

An element in the scene file contains an invalid option for one of its attributes.

SCNConsistencyMissingElementError

A required element in the scene file is missing.

SCNConsistencyMissingAttributeError

An element in the scene file is missing a required attribute.

SCNConsistencyXMLSchemaValidationError

The format of the scene file does not match its XML schema definition.