Closed FlorianJa closed 9 months ago
This issue has been marked as stale by an automated process because it has not had any recent activity. It will be automatically closed in 30 days if no further activity occurs. If this is still an issue please add a new comment with more recent details and repro steps.
We appreciate your feedback and thank you for reporting this issue.
Microsoft Mixed Reality Toolkit version 2 (MRTK2) is currently in limited support. This means that Microsoft is only fixing high priority security issues. Unfortunately, this issue does not meet the necessary priority and will be closed. If you strongly feel that this issue deserves more attention, please open a new issue and explain why it is important.
Microsoft recommends that all new HoloLens 2 Unity applications use MRTK3 instead of MRTK2.
Please note that MRTK3 was released in August 2023. It features an all new architecture for developing rich mixed reality experiences and has a minimum requirement of Unity 2021.3 LTS. For more information about MRTK3, please visithttps://www.mixedrealitytoolkit.org.
Thank you for your continued support of the Mixed Reality Toolkit!
I would like to create similar button functionality as from the OS buttons in the start menu to open something like a context menu when a user pushes a button for a longer time (1 or 2 seconds).
The Interactable script provides the OnHoldReceiver with the functionlity I am looking for. However, this does only work properly when using the Far interaction. "Physically" pushing the button also triggers the OnHold event but also the OnClick Event. I would like to suppress the OnClick Event (from the PressableButton -> PhysicalPressEventRouter -> Interactable) when the button is pressed physically similar to the way it is done for the far interaction.
To reproduce
Steps to reproduce the behavior:
public void OnHold() { Debug.Log("OnHold"); }