Skip to content

[BUG]MRTK3 RayInteractor hover works, but click doesn't select (Editor only, XR Device Simulator) #1012

@gksdyd19

Description

@gksdyd19

Describe the bug
I'm using Unity 2022.3.21f1, MRTK 4.0.0-pre.1, and the new Input System. While testing in the editor using the XR Device Simulator, I can see hover interaction working correctly with RayInteractor, but clicking (via mouse left-button) doesn't trigger selection.

This only happens in the editor — the same scene works fine when built or when using a real HMD.

✅ Gaze-based interaction (hover + select) works perfectly even in the editor.

To Reproduce
Steps to reproduce the behavior:

  1. Use RayInteractor with XR Device Simulator
  2. Hover over UI element (hover works)
  3. Press mouse left-click
  4. Selection does not occur; ray direction changes unexpectedly

Expected behavior
Clicking while hovering should select the interactable object.

Platform info

  • Unity version: 2022.3.21f1
  • MRTK version: 4.0.0-pre.1
  • Device: Editor with XR Device Simulator

Additional context

  • attachTransform.rotation changes at click time
  • Select action bound to <Mouse>/leftButton and pinch is triggered
  • hoverInteractable and validTargets are set correctly
  • Works fine in build and on HMD

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugA problem with an existing feature that can be fixed with the next patched release.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions