0

I have multiple Scenes in an RCProjectfile which pop up from a base, so I render the base and switch scenes from the top file based on behaviors, using this method the two models are in the general same area, but not in the exact same position.

let theAnchor = AnchorEntity(plane: .horizontal, minimumBounds: [0.2, 0.2])

file1.loadSceneAsync(completion: { (result) in
  do {
      let base = try result.get()
      theAnchor.addChild(base)
}
  catch {
     print("Async malfunction :(")
   }
}) 



        
file2.loadSceneAsync(completion: { (result) in
   do {
      let top = try result.get()
      theAnchor.addChild(top)
}
      catch {
         print("Async malfunction :(")
      }
})



arView.scene.anchors.append(theAnchor)

0 Answers0