-
Notifications
You must be signed in to change notification settings - Fork 161
Description
Describe the bug
I'm experiencing an issue with MRTK 4.0.0-pre.1 on Unity 60000.0.49f1 for Quest 3. While hand tracking works perfectly fine and the controller ray shows up correctly (hovering works), pressing the trigger button does not trigger the select action. The ray does not change its visual state to indicate a pressed state, and it doesn't interact with UI elements. ( mrtk 3.2.2 input package is work )
And I attached the script below to the Far Ray object of the MRTK XR Rig, and confirmed that logs are printed when the controller trigger is pressed.
using MixedReality.Toolkit.Input;
using UnityEngine;
using UnityEngine.InputSystem;
public class TriggerFix : MonoBehaviour
{
public InputActionReference triggerAction;
private MRTKRayInteractor rayInteractor;
void Start()
{
rayInteractor = GetComponent<MRTKRayInteractor>();
}
void Update()
{
if (triggerAction != null && rayInteractor != null)
{
float value = triggerAction.action.ReadValue<float>();
if (value > 0.5f)
{
rayInteractor.allowSelect = true;
Debug.LogWarning("value > 0.5f Z: rayInteractor.allowSelect = true");
}
}
}
}
To reproduce
"I cannot share my project publicly, but I followed the environment setup of the project in this link while migrating from Unity 2022.3.x version to Unity 6. The build results from this project show the same issue.
https://github.com/LocalJoost/QuestBouncer/tree/empty-starter-project
Expected behavior
Controller trigger should change the ray visual state and interact with UI elements.
Screenshots
here is my screenshot of the Unity environment settings
Your setup (please complete the following information)
- Unity Version Unity6.0 ( 6000.0.49f1)
- MRTK Version 4.0.0-pre.1
- Meta Quest 3 v76
Target platform (please complete the following information)
- OpenXR


