gaopinghuang0 / ARPersistence-RealityKit

13 stars 2 forks source link

Placing Multiple Models. #1

Open Gopinath1728 opened 6 months ago

Gopinath1728 commented 6 months ago

Hello, I was wondering if it is possible to achieve persistence when we place multiple 3d models. I have changed the onTap handler function to create a new entity without going into didAdd anchors function. The app can add multiple models and performs persistence when the app is running. But when the app closes, and try to load, the models is not placed. Is there anything you can help with please? Thank you.

xduwzh commented 3 months ago

Hi, that's probably caused by the isRelocalizingMap variable, it will make handleTap function useless when it's false, u can just comment out that line. I also made a multi-saving version