How to make HoverEffectComponent of an Entity in a RealityView visible in visionOS 1.0 Simulator?

I would like to make the HoverEffectComponent visibly react as it is being shown in "Build spatial experiences with RealityKit" at around 19:50: https://developer.apple.com/videos/play/wwdc2023/10080

Is this feature supported yet?

I checked it again and there is no reaction on the User look. The model entity has mesh, collision shapes, a physical body, input target and hover (HoverEffectComponent). Might It be that I need something else to make it work?

I was able to get this working just now with a simple programmatic demo:

struct ContentView: View {
    var body: some View {
		VStack {
			RealityView { content in
				let sphereResource = MeshResource.generateSphere(radius: 0.05)
				let myMaterial = SimpleMaterial(color: .blue, roughness: 0, isMetallic: true)
				let myEntity = ModelEntity(mesh: sphereResource, materials: [myMaterial])
				
				var collision = CollisionComponent(shapes: [.generateSphere(radius: 0.05)])
				collision.filter = CollisionFilter(group: [], mask: [])
				myEntity.components.set(collision)

				let input = InputTargetComponent(allowedInputTypes: .all)
				myEntity.components.set(input)

				let hoverComponent = HoverEffectComponent()
				myEntity.components.set(hoverComponent)

				content.add(myEntity)
			}
		}
		.frame(width: 800, height: 800)
		.padding(30)
		.background(.black)
    }
}

Maybe if you can get this simple example working it will help you see how yours differs.

Daniel

How to make HoverEffectComponent of an Entity in a RealityView visible in visionOS 1.0 Simulator?
 
 
Q