Post

Replies

Boosts

Views

Activity

Comment on visionOS RealityView attachment SwiftUI controls don't always respond to user interaction
You're welcome! When you say, you update the attachment, I assume this means RealityViewAttachments doesn't change, but the respective attachment entities get added to RealityViewContent for the first time? In case another delay doesn't help, maybe it is necessary to add all attachment entities in the make closure at once and then show and hide them as needed. That would be an ugly solution, but it's all a hack anyway right now. I hope, we're going to see another beta with a fix soon.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Sep ’23
Comment on Can't center entity on AnchorEntity(.plane)
Thanks @J0hn, box.setPosition([0, 0, 0], relativeTo: nil) indeed fixes it for me! So weird, nil meaning world space is the exact reason I didn't even try this. It's one more prove that at this point we need to try everything - although I'll always be worried that inconsistent API like this might break with the next beta.
Topic: Graphics & Games SubTopic: RealityKit Tags:
Sep ’23