Welcome to the Oculus Developer Forums!

Your participation on the forum is subject to the Oculus Code of Conduct.

In general, please be respectful and kind. If you violate the Oculus Code of Conduct, your access to the developer forums may be revoked at the discretion of Oculus staff.

how to check if object is grabbed by specific controller?

tkdHayktkdHayk Posts: 31 Oculus Start Member
edited September 2018 in Unity Development
Below is pseudo-code which demonstrates my desired functionality. The code needs to be placed in on the grabbed object. The part in Bold is what I need clarification on. 

if (_OVRGrabbable.grabbedBy == "LTouch")
{
//Do something
}

EDIT:

Solution :

Public OVRGrabber LeftGrabber; // Drag grabber to inspector field

if (_OVRGrabbable.grabbedBy == LeftGrabber)
{
//Do something
}


Sign In or Register to comment.