Posts

Post not yet marked as solved
0 Replies
47 Views
Is there a maximum distance at which an entity will register a TapGesture()? I'm unable to interact with entities farther than 8 or 9 meters away. The below code generates a series of entities progressively farther away. After about 8 meters, the entities no long respond to tap gestures. RealityView { content in var body: some View { RealityView { content in for i in 0..<10 { if let immersiveContentEntity = try? await Entity(named: "Immersive", in: realityKitContentBundle) { content.add(immersiveContentEntity) immersiveContentEntity.position = SIMD3<Float>(x: Float(-i*i), y: 0.75, z: Float(-1*i)-3) } } } .gesture(tap) } var tap: some Gesture { TapGesture() .targetedToAnyEntity() .onEnded { value in AudioServicesPlaySystemSound(1057) print(value.entity.name) } } }
Posted
by smicker.
Last updated
.
Post not yet marked as solved
2 Replies
463 Views
On two devices that I've updated with yesterday’s 16.4.1(a) security update (an iPhone 8 and an iPad Pro M1) I am suddenly seeing a 6-8 second delay before ContentView is shown when running builds from XCode -- this didn't happen before the update. On my iPhone 14 still running 16.4.1 launch time is normal, less than 1s. Is anyone else seeing this? This is happening with both debug and release builds. Interestingly, if I quit the app and run it again directly from the device the app launches and runs normally.
Posted
by smicker.
Last updated
.