Skip to main content
New Participant
January 10, 2024
Solved

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)

dexum11Answer
Meta Employee
January 16, 2024

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

dexum11Answer
Meta Employee
January 16, 2024

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/

BigFlex
Meta Employee
February 5, 2024

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.