Skip to main content
Up and Coming
June 19, 2013

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!
    This topic has been closed for replies.

    2 replies

    Inspiring
    June 19, 2013
    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.
    Titans of Space PLUS for Quest is now available on DrashVR.com
    ArowxAuthor
    Up and Coming
    June 19, 2013
    Cheers that fixed it!