Detecting User Tap in mobile AR

What is the best function for detecting a user tap on an object in 3D space running on mobile AR? Would “onClick” work?

The cursor has that :slightly_smiling_face:
Otherwise check the wastepaperbin-ar project (spawning the wastebin)
onClick does not work
Unless you mean the cursor component’s onClick.
Since the WebXR API generalizes for both stereo AR headsets and mobile AR here, the way to detect clicks is using the ‘select’ event on XRSession.