Forum Discussion
chris_banwell_3
6 years agoHonored Guest
How to GetComponent<OvrAvatar>()
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?
}
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
Replies have been turned off for this discussion
- chris_banwell_3Honored GuestAnybody know how to get a reference to the OvrAvatar?
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device