-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recommended approach for disabling all interactions in a MRTK enabled UI Canvas #951
Comments
@ghazen-ml can you please add your recommendations to this issue? |
@TheXRMonk can you please describe the end user impact of this issue? What issue are you hitting "while buttons are transitioning"? |
A few tricks that could be useful for situations like this:
It would be great to understand more about your use case -- why are users attempting to click while a view is paging? Did their interaction cause the transition or is it happening automatically or on a timer? |
We're only using near interactions - no rays. Not sure point 3 will solve it, but that might be possible,
Basically when a user clicks "next" the page transitions a whole page. While this is happening the user's finger might be accidentally clicking buttons that are "transitioning" across the screen, leading to the UI reacting to for instance going back again to the previous page, or fast forwarding to the next one before the user has even seen/read it. |
Hi @TheXRMonk , were you able to have success with one of the approaches above e.g. to disable the poke/ray interactors etc during a UI transition? |
I'm sorry we haven't had the time to look into this yet. We'll probably have to go with the raycast layering approach though, since we also now have "pop-up dialogs" in the UI that requires buttons behind to be disabled, so in that case disabling the whole poke/ray will not work since we still need it for clicking the pop-up dialog. |
Describe the issue
Let's say we have a couple of pages swiping from left to right. The PressableButton together with the RectTransformColliderFitter will nicely shorten the box collider as a page transitions across the "screen" and outside the "UI Mask", meaning you can't click buttons that are off screen. Great!
However, how does one disable the buttons while they are transitioning? We want to block users from accidentally pressing buttons that are going off or coming onto the screen.
There's no clear way to do this.
In native unity UI you would just disable the Graphics Raycaster or put an invisible component over the screen to block raycasts, but there's no way to do this in MRTK.
What we've tried so far:
So main question: How should one turn off a whole "canvas" of MRTK UI?
Feature area
MRTK Canvas UI
The text was updated successfully, but these errors were encountered: