Let me know current best practice of detect UI event (v0.6.3)

In current vision OS Sample, there 2-way to detect a select object event.

  1. Use SpatialUI components
  2. Use SpatialPointerDevice

In the BalloonGallery sample, 2nd way is used to detect pointing(selecting) object.
On the other hand, in the SpatialUI sample, SpatialUI components are used to detect button event.

As I understand we can only detect object with 3D Collider. This characteristic is common both using SpatialUI components and using SpatialPointerDevice.

The current situation is, which of these two methods is considered best practice to use? Additionally, please advise on how to differentiate and choose between these methods.

2 Likes