Day 5 - tap gesture not triggered
thisIsTheFoxe opened this issue · comments
Henry commented
Hi,
Awesome project! Helped me a lot getting into and familiar with VisionPro and the SDK. However, one thing I struggled with was that all my SpatialTapGesture()
didn't work. So, I looking into Day 5 and it wasn't working there either.. I eventually found Day 13 and this WWDC video which cleared things up a lot..
TL;DR, you need to set InputTargetComponent
& CollisionComponent
, which isn't being done for contentEntity
.
So, I'd suggest either removing the .gesture
or setting the components. Otherwise it's a bit confusing, at least imo.. ^^