Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
seatedmech's avatar
seatedmech
Explorer
11 years ago

"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.

7 Replies

Replies have been turned off for this discussion
  • kersk's avatar
    kersk
    Meta Employee
    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.
  • 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?
  • kersk's avatar
    kersk
    Meta Employee
    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. :)
  • So it looks like Gear VR is supposed to be launching tomorrow. Any news about when the Mobile SDK will support Unity Free?
  • I've gone through pretty much all of the content that's available. I'm dying to get started developing for this!
  • @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."