how to check if object is grabbed by specific controller?
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
}
if (_OVRGrabbable.grabbedBy == "LTouch")
{
//Do something
}
EDIT:
Solution :
Public OVRGrabber LeftGrabber; // Drag grabber to inspector field
if (_OVRGrabbable.grabbedBy == LeftGrabber)
{
//Do something
}
