arworldmap

How do I save and load ARWorldMap in SwiftUI app?

岁酱吖の 提交于 2021-02-19 05:38:26
问题 I followed a YouTube tutorial on how to place virtual Models in SwiftUI. Now that I can place my Models, I would like to save and load the models position. I have already made 2 Buttons for save and load, but I don't know the correct code to save and load the Entities and Anchors. The following code is inside my updateUIView function: func updateUIView(_ uiView: ARView, context: Context) { if let name = self.modelName { print("Modell mit dem Namen \(name) wurde zum plaziert") let filename =