Instance Property

debugOptions

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

Required.

Declaration

@property(nonatomic) SCNDebugOptions debugOptions;

Discussion

Use these options to display overlays that show otherwise-invisible scene content—such as node bounding boxes and the extents of physics fields—for use in debugging and profiling your app. For example:

  • To visualize how well each object’s physics representation corresponds to its visible geometry, show the shape of each SCNPhysicsBody object in the scene with the SCNDebugOptionShowPhysicsShapes option.

  • To improve rendering performance in a scene with multiple SCNLight objects, show each light’s area of effect with the SCNDebugOptionShowLightExtents option and ensure that each object in the scene is affected by no more than three lights.

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.

renderingAPI

The graphics technology SceneKit uses to render the scene.

Required.

SCNDebugOptions

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

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.