I downloaded this and added a few objects. The only thing that stands out to me is you use of ManipulationComponent.configureEntity(). In my opinion, you shouldn't be using that here. This sample already does the heavy lifting of creating collision and input target components. You are essentially overwriting those.
Instead, try adding the component the "normal" way.
let object = objectToPlace.materialize()
let mc = ManipulationComponent()
object.components.set(mc)
A few other thoughts:
This doesn't add the ManipulationComponent when restoring the scene. It only adds it when you are anchoring a new item, but not when respawning them.
There may be some bugs or issues using ManipulationComponent along with ARKit.
Since this is based on an existing sample, check the rest of the project for things that may be causing issues.
I added around 30 items and never saw a crash or any errors.
Topic:
Spatial Computing
SubTopic:
General
Tags: