Forum Discussion

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

Error with Unity SDK 0.2.2

I imported the OculusUnityIntegration.unitypackage into my project, and now when I hit play in the editor my console gets spammed with this red error:

EntryPointNotFoundException: OVR_Update
OVRDevice.Update () (at Assets/OVR/Scripts/OVRDevice.cs:267)

Any ideas? Did something not import correctly?

3 Replies

Replies have been turned off for this discussion
  • Sorry, false alarm. I just rebooted Unity and the problem went away. However, I now get this error instead (just once, not spammed):

    BroadcastException: Broadcasting message "Sensor_Attached" but no listener found. Try marking the message with Messenger.MarkAsPermanent.
    OVRMessenger.OnBroadcasting (System.String eventType) (at Assets/OVR/Scripts/OVRMessenger.cs:162)

    Should this script be rewritten to not require a listener?
  • Hello there,

    There is a define in OVRMessenger.cs at the very top that has been left in:

    #define REQUIRE_LISTENER

    Listeners are not required for these messages, so removing this define is completely valid. OVRMainMenu.cs, which is used by OVRPlayerController, actually sets up the messages. However, most people are using OVRCameraController in their projects.

    To remove the exception, comment out the define and it will keep this exception message from showing up. This will be fixed in the next release.

    Thanks,
    Peter