Forum Discussion
MaraJets
2 years agoHonored Guest
interaction button
I'm currently developing an app using Unity. I would use the virtual hands to interact with objects/button. I aim to implement a scene where there is an object/button and upon pressing it, another object changes color. I'm wondering how I could achieve this. Any insights or suggestions on how to go about implementing this interaction would be appreciated!
I did some with HTC Vive and Leap motion using Interaction Button (i am looking for something similar)
Hi MaraJets. You can use the Interaction SDK for this. Here is tutorial for creating a poke interaction, and it also links to a sample scene with a pokeable button.
https://developer.oculus.com/documentation/unity/unity-isdk-create-poke-interactions/
2 Replies
- dexum11Protege
Hi MaraJets. You can use the Interaction SDK for this. Here is tutorial for creating a poke interaction, and it also links to a sample scene with a pokeable button.
https://developer.oculus.com/documentation/unity/unity-isdk-create-poke-interactions/
- Big_FlexMeta Employee
Hi MaraJets, to add to what the other poster said, Interaction SDK has event wrapper components you can use to listen for interactions. For your scenario, you could put an InteractableUnityEventWrapper on your button GameObject and have it call your color change code whenever the Selected() event happens.
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
- 4 months ago