microsoft / MixedRealityToolkit-Unity

This repository is for the legacy Mixed Reality Toolkit (MRTK) v2. For the latest version of the MRTK please visit https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity
https://aka.ms/mrtkdocs
MIT License
6k stars 2.12k forks source link

Slider (step slider) doesn't work on iOS & android device #10367

Closed AnandMulay closed 9 months ago

AnandMulay commented 2 years ago

Describe the bug

I'm using MRTK slider for my AR app and it works as expected on hololens 2, but now when I build it for Android & iOS devices it doesn't move the ThumbRoot object , i can see that it is selected or grabbed already but doesn't move. Am I missing any additional script attached to the ThumbRoot object to work on mobile devices?

Expected behavior

slider moves as shown in slider documentation for Android and iOS.

Your setup (please complete the following information)

Target platform (please complete the following information)

AnandMulay commented 2 years ago

would like to add more details, when I build an AR build for both of the devices (Android & iOS), step slider doesn't work as intended, it's hard to move the thumb root, also notice one thing, it only works if the user holds it and move the camera towards the direction. A simple swipe gesture should work after holding the thumb root and swipe, right?

RogPodge commented 2 years ago

Hey there, sorry for the super long delay in response. We've been hard at work on the next iteration of the slider, so we haven't been able to revisit the older version for a bit.

Do you have a video showcasing the issue you're experiencing? We haven't been able to test as much on Android/iOS, so more data points would be extremely helpful!

AnandMulay commented 2 years ago

Hello @RogPodge ,

Please have a look at this video - https://youtu.be/NIqSVDOomEQ you can see if I hold thumb root and swipe, it doesn't move, but if i hold and move the camera then only it works. -recorded on Ipad pro

AnandMulay commented 2 years ago

Hello, Any update or workaround on this ???

RogPodge commented 2 years ago

Hey there, it's possible we had an inadvertent regression in 2.7.2 with respect to the touch pointer.

Can you see if reverting the following changes fixes the issue?

https://github.com/microsoft/MixedRealityToolkit-Unity/commit/729f8a717b0edc52db25a3372539f4fdbd285983

AnandMulay commented 2 years ago

Does not affect that much, what I.ve notice, is if I scale down the slider on x-axis 1 to 0.6 it works better, but on the normal scale it is hard to move using hold and swipe gestures on mobile.

even I upgraded the unity version to 2020.3 and MRTK to 2.7.2, probably I need to drop slider use in mobile by the time it gets some changes for mobile.

RogPodge commented 2 years ago

Sorry for the poor response time on this. It's something that we believe we've fixed in MRTK v3, but we're not sure we'll be able to root cause and fix the issue for v2. We don't have a great way to test on mobile at the moment unfortunately :(

Are there any other issues you've noticed with using MRTK on mobile? More data points can help us pinpoint if there's a specific regression to the mobile pointers which we try to fix.

IssueSyncBot commented 9 months ago

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!