Forum Discussion
InfiniteArray
1 year agoExplorer
Direct Interactable UI Sliders and Dials?
Hello everyone!
I am planning on building an application where a user can use their hands to directly interact with a button, a slider and a dial (as opposed to using the joystick and raycast to manipulate the UI element).
Oculus has a template for virtual buttons that can be interacted with directly with the hand. But I am struggling to find if such a thing exists for sliders and knobs. All the examples for sliders that I've seen so far use the joystick rather than letting users pinch and move the selector. I haven't seen any examples for a knob yet.
Thus: Is there some example code for sliders and dials that allow for direct hand interactions?
To anyone looking to do something similar:
I ended up solving my issue by following Valem's tutorial on Restricted Grabs: https://www.youtube.com/watch?v=P0rbFHWpKnA The slider in this case is a simple block that's restricted to move only a certain distance along one axis.
4 Replies
Replies have been turned off for this discussion
- InfiniteArrayExplorer
To anyone looking to do something similar:
I ended up solving my issue by following Valem's tutorial on Restricted Grabs: https://www.youtube.com/watch?v=P0rbFHWpKnA The slider in this case is a simple block that's restricted to move only a certain distance along one axis.
- uDezimiroProtege
hey. how did you make restriction to move only a certain distance along one axis.
I tried configurable joint. but when I grab it - it moves any axis and any distance..- InfiniteArrayExplorer
uDezimiro I used the One Hand Translate Transformer introduced at 3:08 in the video. I then enabled all constraints and only gave a non-zero value for the axis that I wanted to be able to move along.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 2 years ago
- 4 months ago