How to access a class in another class with other namespace

I am trying to access OVRInput class which in assets/OVR/Scripts/ folder. I am trying to access the class to take Inputs from OVRInput in Unity’s standard car controller script

namespace UnityStandardAssets.Vehicles.Car
    [RequireComponent(typeof (CarController))]
    public class CarUserControl : MonoBehaviour
        private CarController m_Car; // the car controller we want to use

        private void Awake()
            // get the car controller
            m_Car = GetComponent<CarController>();

        private void FixedUpdate()
            // pass the input to the car!
            float h = CrossPlatformInputManager.GetAxis("Horizontal");
            float v = CrossPlatformInputManager.GetAxis("Vertical");

            float handbrake = CrossPlatformInputManager.GetAxis("Jump");
            m_Car.Move(h, v, v, handbrake);
            m_Car.Move(h, v, v, 0f);

But when I try to access OVRInput. any method. OVRInput doesn’t recognize. What’s the problem and how to access it

OVRInput is for Oculus rift Input. OVR folder contrains all the oculus rift stuff inside it which I got after importing the package.

Also, OVRInput is not in any namespace.

Did you set the OVRInput class al public. if yes have you tried:

OVRInput ovr = new OVRInput();
 // OR
OVRInput ovr;

Now you can call a function or variable or class with:


PS. Code is not tested and may not work