Skip to main content
Up and Coming
November 17, 2014

"DllNotFoundException: Oculus Plugin" in Android Unity SDK

I'm using the free version of Unity 4.5.4f1 on a Mac running OSX 10.9.5.

1. I create a new Unity project.
2. I import UnityIntegration.unitypackage from the OVR mobile SDK. Inside the Assets folder there are now three other folders: OVR, Moonlight, and Plugins, each containing what looks to me like everything that ought to be there.

3. I create a basic scene consisting of a plane, a directional light, and a sphere.
4. I delete the main camera.
5. I drag the OVRCameraController from the prefabs folder into the hierarchy.

The status bar then shows the following error:DllNotFoundException: Oculus Plugin

I check the console and there are 60 red errors. The first two state "License error. This plugin is only supported in Unity Pro!" The rest all have some variation on the DllNotFoundException: Oculus Plugin error.

This is weird because within the Plugins folder there are many subfolders, most of which contain an Oculus Plugin of some sort. I don't understand why these are not working.
    This topic has been closed for replies.

    7 replies

    Meta Employee
    November 18, 2014
    Hi seatedmech,

    Bad news! The GearVR mobile android SDK does not yet support Unity Free. We're working hard to address that, but it is not currently supported at this time.

    However, Unity Free support does work when targeting desktop platforms. To get that working, you will need to switch over to the PC SDK and upgrade your version of Unity to at least 4.5.5f1 or 4.6.0f1. Earlier versions such as Unity 4.5.4f1 don't have the required changes that allow our plugin to work in the free version, thus the need to upgrade Unity.

    Keep an eye out for new SDK releases -- we are hoping to support free unity development on mobile soon.
    Up and Coming
    November 19, 2014
    That is a huge let-down. I bought my Note 4 with the intention of getting Gear VR instead of a DK2, and I've been writing a game with the intention of playing it on the Gear VR. Any idea when the mobile SDK will work on Unity free?
    Meta Employee
    November 20, 2014
    Ah, bummer. Sorry about that. I'd recommend using the PC version of Unity Free and trying to make as much progress as you can without VR in the meantime.

    We're actively working on this and we want to get it out as soon as possible.

    So hang in there, hopefully it will be a nice holiday present. :)
    Up and Coming
    December 7, 2014
    So it looks like Gear VR is supposed to be launching tomorrow. Any news about when the Mobile SDK will support Unity Free?
    Up and Coming
    December 10, 2014
    I've gone through pretty much all of the content that's available. I'm dying to get started developing for this!
    New Participant
    December 17, 2014
    @kersk

    thank you for your response. Can you clarify, currently, does development for Gear VR require Unity Pro, Unity Android Pro add-on, or both?

    I have a Unity Pro license but not an Android Pro license and I am having problems getting the example project to run. I get a popup in Gear VR that says "[App Name] has stopped unexpectedly."
    Inspiring
    December 17, 2014
    Yes, you need Unity Pro and Android Pro at the moment.
    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