Skip to main content
New Participant
November 25, 2014

Can't Build Android

When trying to build to Android in Unity 4.6f3 I get the following error:

Assets/OVR/Scripts/OVRManager.cs(362,17): error CS0103: The name `OVRTouchpad' does not exist in the current context

I'm using the Unity plugin provided which is 0.4.3.1 and my sdk version is 0.4.3. This has occurred on both Mac and PC.
    This topic has been closed for replies.

    3 replies

    New Participant
    November 26, 2014
    Not sure if this is what is happening to you, but if you are using the mobile SDK you will need Unity Android Pro. I kept getting strange results until I upgraded (Getting the Unity Pro trial will give you android pro for 30 days).
    New Participant
    February 4, 2015
    I ran into this same problem with the current PC/Mac SDK (0.4.4) in Unity 4.6. It makes reference to OVRTouchpad under some Android preprocessor block, but this does NOT exist in that SDK, so it fails to compile the project under Android. Presumably OVRTouchpad is part of the mobile SDK?

    For clarity: I am using Oculus on the PC but have a non-Oculus version running on mobile.


    How does one report a bug in the SDK like this?
    Inspiring
    February 4, 2015
    Are you using the mobile SDK or the PC Unity integration? They are two different things.

    You need the version from here (currently 0.4.2): https://developer.oculus.com/downloads/#sdk=mobile
    AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV