- Home /
Leap motion and Unity positions
Hi , I'm working on application menu as you know there are many buttons in the menu , The buttons are Gui Texture I want to know the position of the finger and compare it to the position of the button The problem is that the position of the leap motion is different from unity ( even though they in the same place ! ) How can I match between them ?
How do you know they are in the same place and how do you test position? Are you using GUITexture.HitTest? Some code?
@koray1396 there this code in the leap where it shows you where is your finger on the screen. So when I print the position of the finger and the position of the button, they are different even though the finger is on the top of the button.
ahh ok... I'm not familiar with leap... i'm almost sure that i am missing something, and you may already know this, the position of a GUITexture would show a 2d screen coordinate from 0 to 1. Therefore they would be different. You may test with GUITexture.HitTest(leap position) if they match. Also pixelInset is a factor.
Your answer
![](https://koobas.hobune.stream/wayback/20220613142754im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
animations not change when OnGUI button click in unity3d Vuforia? 1 Answer
unity 3D - android platform] problem on server side highscore get method on actual android device. 0 Answers
How to get rid of the input selection screen at beginning of game 1 Answer
turn on off particle system 1 Answer
What should i do about all these different options?! 0 Answers