cancel
Showing results for 
Search instead for 
Did you mean: 

interaction button

MaraJets
Honored Guest

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)

1 ACCEPTED SOLUTION

Accepted Solutions

dexum11
Explorer

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/

View solution in original post

2 REPLIES 2

dexum11
Explorer

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_Flex
Expert Protege

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.