debugOptions
Options for drawing overlay content in a scene that can aid debugging.
Declaration
var debugOptions: SCNDebugOptions { get set }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 showPhysicsShapes option.
To improve rendering performance in a scene with multiple SCNLight objects, show each light’s area of effect with the showLightExtents option and ensure that each object in the scene is affected by no more than three lights.