ARSCNDebugOptions
是 ARKit 中的一个枚举,用于在 SceneKit 中启用不同的调试选项,以便在开发过程中更好地理解和调试 AR 场景。以下是 ARSCNDebugOptions
中一些常用的选项:
-
showFeaturePoints:
- 描述:显示 AR 会话中检测到的特征点,通常是环境中的表面点。
- 使用方式:
ARSCNDebugOptions.showFeaturePoints
-
showWorldOrigin:
- 描述:在场景中显示世界坐标系的原点。
- 使用方式:
ARSCNDebugOptions.showWorldOrigin
-
showBoundingBoxes:
- 描述:显示检测到的 AR 物体的边界框。
- 使用方式:
ARSCNDebugOptions.showBoundingBoxes
-
showWireframe:
- 描述:显示 AR 物体的线框。
- 使用方式:
ARSCNDebugOptions.showWireframe
-
showPhysicsShapes:
- 描述:显示 AR 物体的物理形状。
- 使用方式:
ARSCNDebugOptions.showPhysicsShapes
-
showCameras:
- 描述:在场景中显示 AR 会话中使用的相机。
- 使用方式:
ARSCNDebugOptions.showCameras
-
showFeaturePoints:
- 描述:显示 AR 会话中检测到的特征点,通常是环境中的表面点。
- 使用方式:
ARSCNDebugOptions.showFeaturePoints
-
showLightExtents:
- 描述:显示 AR 会话中的灯光范围。
- 使用方式:
ARSCNDebugOptions.showLightExtents