same problem currently
Post
Replies
Boosts
Views
Activity
Did it fix the problem?
Thanks, it seems to work. I receive anchor updates with the needed information.
It seems that my answer was deleted or not accepted. I checked it and it is not initialized before entering the immersive space. I also tried some recommendations from Stackoverflow but nothing helped.
struct ImmersiveView: View {
@StateObject var arKitVM = ARKitViewModel()
var body: some View {
RealityView { content in
}
.task {
await arKitVM.runSession()
}
.task {
await arKitVM.processUpdates()
}
}
}
The ARKitViewModel is initialized when entering the immersive space. I receive the error message during runSession(). In this method, I run the ARKitSession with the data provider.