Enumeration

SCNDebugOptions

Options for drawing overlays with SceneKit content that can aid in debugging, used with the debugOptions property.

Declaration

typedef enum SCNDebugOptions : NSUInteger {
    ...
} SCNDebugOptions;

Overview

Debug options are bit mask patterns. To display multiple debugging overlays, combine options using the bitwise OR operator.

Topics

Debugging Geometry and Animation

SCNDebugOptionShowBoundingBoxes

Display the bounding boxes for any nodes with content.

SCNDebugOptionShowWireframe

Display geometries in the scene with wireframe rendering.

SCNDebugOptionRenderAsWireframe

Display only wireframe placeholders for geometries in the scene.

SCNDebugOptionShowSkeletons

Display visualizations of the skeletal animation parameters for relevant geometries.

SCNDebugOptionShowCreases

Display nonsmoothed crease regions for geometries affected by surface subdivision.

SCNDebugOptionShowConstraints

Display visualizations of the constraint objects acting on nodes in the scene.

Debugging Cameras and Lighting

SCNDebugOptionShowCameras

Display visualizations for nodes in the scene with attached cameras and their fields of view.

SCNDebugOptionShowLightInfluences

Display the locations of each SCNLight object in the scene.

SCNDebugOptionShowLightExtents

Display the regions affected by each SCNLight object in the scene.

Debugging Physics

SCNDebugOptionShowPhysicsShapes

Display the physics shapes for any nodes with attached SCNPhysicsBody objects.

SCNDebugOptionShowPhysicsFields

Display the regions affected by each SCNPhysicsField object in the scene.

Disabling Debug Options

SCNDebugOptionNone

Disable all debugging overlays.

See Also

Managing Scene Display

pointOfView

The node from which the scene’s contents are viewed for rendering.

Required.

autoenablesDefaultLighting

A Boolean value that determines whether SceneKit automatically adds lights to a scene.

Required.

jitteringEnabled

A Boolean value that determines whether SceneKit applies jittering to reduce aliasing artifacts.

Required.

showsStatistics

A Boolean value that determines whether SceneKit displays rendering performance statistics in an accessory view.

Required.

debugOptions

Options for drawing overlay content in a scene that can aid debugging.

Required.

renderingAPI

The graphics technology SceneKit uses to render the scene.

Required.

SCNRenderingAPI

Options for choosing the graphics technology for an SCNView object (or other SceneKit renderer) to use for drawing its contents. Used by the renderingAPI property and the SCNPreferredRenderingAPIKey option when initializing an SCNView object.