cancel
Showing results for 
Search instead for 
Did you mean: 

How to GetComponent<OvrAvatar>()

chris_banwell_3
Level 2
I'm trying to hide the controller when I grab an object, and show it when I release the object using OVRGrabber, ive edited the OVRGrabber script with the following:

if (m_grabbedObj)
{
            if (m_controller == OVRInput.Controller.LTouch)               
                transform.parent.GetComponent<OvrAvatar>().ShowLeftController(false);
}

But I get The Type or namespace 'OvrAvatar' could not be found.  I can see it's part of a dll, anybody got any ideas how to access it as a component or maybe a better way of hiding the controller when the object is grabbed?
1 REPLY 1

chris_banwell_3
Level 2
Anybody know how to get a reference to the OvrAvatar?