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 will be revoked at the discretion of Oculus staff.
New to the forums? Click here to read the How To guide. -- Developers click here.

how to check if object is grabbed by specific controller?

tkdHayktkdHayk Posts: 29 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


Solution :

Public OVRGrabber LeftGrabber; // Drag grabber to inspector field

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

Sign In or Register to comment.