Jump to content
 
Sign in to follow this  
chengnay

How to get which hand?

Recommended Posts

Dear author

     I have some problems,when i learn VIU. you know we can get the button press event when the ray or hand enter some one gameobject.  but how can i get which hand ? can you give me a example . thanks!!

Share this post


Link to post
Share on other sites

Using example scene (UGUI),

image.png.fc833c56ea694cf3402afef3d3f1c0cd.png

By adding MyPointerEventHandler.cs to Button,

when user hovers and presses on button by using trigger button, it will show log telling which hand is pressing.

MyPointerEventHandler.cs

Share this post


Link to post
Share on other sites

Please sign in to comment

You need to be a member in order to leave a comment

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...