ARKit: Anchor and Entity looked disabled outside Xcode simulator

Issue Condition

Below code lines run successfully although a connected device did not render newly added anchors and scene while Xcode simulator did. Is there any device specific context to halt such a rendering of scene? IsEnabled == true but below anchor instance was unexpectedly invisible.

let sphere = MeshResource.generateSphere(radius: 0.03)
let material = SimpleMaterial(color: sphereColor, roughness: 0, isMetallic: true)
let entityChild = ModelEntity(mesh: sphere, materials: [material])
let anchor = AnchorEntity(world: position)
anchor.addChild(entityChild)
scene.addAnchor(anchor)

AR Tacks.keynote page 5 contained this issue condition as an image.

Issuing Technologies

  • ARKit
  • RealityKit
ARKit: Anchor and Entity looked disabled outside Xcode simulator
 
 
Q