Synopsis
Using the ARDemoScene from XRIT, tap does not select a spawned object.
Sometimes the object highlights but does not become selected (see NoSelect.MOV attached) as evidenced by the Create button not being replaced by the Delete button.
Sometimes the tap falls through the object and spawns and additional object (see FallThrough.MOV attached).
The bug does not occur if you tap-and-drag, which selects and translates the object.
Steps to reproduce:
1. Unzip the attached AR_Selection_Bugs project.
2. Open AR_Selection_Bugs with Unity 2023.3.0b8.
3. File > Build Profiles > Android.
4. XR Plugin Management > ARcore.
5. XR Plugin Management > Project Validation > Fix All.
6. File > Build and Run.
7. Use phone to scan a plane.
8. Tap to spawn one cube on the plane.
9. Tap the spawned cube, being careful to not move the cube via drag.
Actual results:
Either the cube is not selected as seen in NoSelect.MOV, or a new cube is spawned as seen in TapThrough.MOV; see attached.
Expected results:
Cube is selected, as evidenced by the Create button being replaced by the Delete button.
Reproducible with versions:
XRIT 3.0.0-pre.2
XRIT 3.0.0-pre.1
XRI2.5.3
Not reproducible with versions:
Can’t test with versions:
Tested on (OS):
Repros on iOS (iPad) and Android (Pixel 7 Pro).
Notes:
- Very intermittent with Unity 2023.2 + XRI 2.5.0; overlooked during release testing.
- While testing this, sometimes a selected object becomes "stuck" to the camera, such the object moves around as you move the phone.