-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error while reading the input #6
Comments
Hello, The current specification works only when |
Thank you very much for the quick reply! Yes the scene has the Also I found few more gestures on the input action, but I could not found on the documentation about how to trigger those. Can you please help me with it? |
Only the one with the closest hand shape among them will be true. |
Thank you very much for the responce also I would like to know if there any way to detect the hand position on the screen? Actually we are gonna use the hand to interract with the UI and other 3D objects. So we need to use the raycast to detect the objects or UI elements. Edit: I just checked the variable |
If you're using InputSystem, you can get it with By the way, |
Hi, I was trying to read the input of grab interrraction but unfortunalty I am getting this error on logcat
NullReferenceException: Object reference not set to an instance of an object. at HandMR.HandVRSphereHand.get_IsGrab () [0x00000] in <00000000000000000000000000000000>:0 at HandMR.HandVRController.Update () [0x00000] in <00000000000000000000000000000000>:0
used the input system which has came with the package and genarated a c# class to test the input is working or not
I wrote by code like this to do a basic testing.
I think from line no. 79 of HandVRSphereHand.cs is causing the issue
Which has this code
public bool IsGrab { get { var gestures = handVRMain_.GetGestures(handVRMain_.GetIdFromHandednesses(ThisEitherHand)); return gestures[(int)HandVRMain.GestureType.Open] < gestures[(int)HandVRMain.GestureType.Close] || gestures[(int)HandVRMain.GestureType.Open] < gestures[(int)HandVRMain.GestureType.Grab]; } }
Please let me know the solution.
The text was updated successfully, but these errors were encountered: