Options for drawing overlay content in a scene that can aid debugging.
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
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
SCNPhysicsobject in the scene with the
Option Show Physics Shapes
To improve rendering performance in a scene with multiple
SCNLightobjects, show each light’s area of effect with the
SCNDebugoption and ensure that each object in the scene is affected by no more than three lights.
Option Show Light Extents