Forum Discussion

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

MessengerHelper error loading script!?

Hi Help with warning error needed...

I'm just using the basic OVR Camera Prefab and a MessengerHelper object is generated at run time, only it generates a warning as it cannot add it's script?

So I end up with a new MessengerHelper every time I run the game and this error:

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)
OVRMessenger.Broadcast[Device,Boolean] (System.String eventType, Device arg1, Boolean arg2) (at Assets/OVR/Scripts/OVRMessenger.cs:284)
OVRDevice.Update () (at Assets/OVR/Scripts/OVRDevice.cs:273)


I have attempted to add the OVRMessenger script to MessengerHelper manually but it fails with the following error message:

Can't add script behaviour OVRMessenger. The script class can't be abstracted!

2 Replies

Replies have been turned off for this discussion
  • drash's avatar
    drash
    Heroic Explorer
    I believe this is a known issue, there is a #DEFINE REQUIRE LISTENER near the top of OVRMessenger.cs that can safely be removed or commented out, and should be removed from the next version of the SDK.