Skip to content

MRTK4 RayInteractor hover works, but click doesn't select (Editor only, XR Device Simulator) #139

@gksdyd19

Description

@gksdyd19

Hi all,

I'm using Unity 2022.3.21f1, MRTK 4.0.0-pre.1
For testing, I'm using the XR Device Simulator in the editor.

I'm encountering an issue where hover using RayInteractor works fine, but selection via click (mouse left-button) doesn't trigger while testing in the editor.
In contrast, everything works correctly in builds and when using a real HMD.

✅ Important Note:
When using Gaze-based interaction, both hover and select work properly, even in the editor.

❌ Problem (Editor only)
While using XR Device Simulator to simulate hand rays, hover state appears visually on UI or interactable GameObjects.

However, clicking (mouse left-button) does not trigger selection.

At the moment of clicking, the ray direction changes unexpectedly, and the attachTransform.rotation is updated.

🙋‍♂️ Question
Is there a known issue in MRTK4 regarding RayInteractor + XR Device Simulator click detection in the editor?

Could the XR Device Simulator's left-click be conflicting with UI events?

Is there a workaround to make far interaction selection work in the editor with mouse clicks?

Thanks in advance 🙏

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions