Forum Discussion

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

[0.4.3] OVRManager.cs script does not compile

Hi to all, I'm in need for help. I've recently updated my project to use the new 0.4.3 Oculus software. I've followed the indications in the migration guide, and tried whatever I thought could solve the issue, but the code in OVRManager does not compile, it always throws an error saying that "event must be of delegate type", for the events HMDAdquired, HMDLost and so on... I do not know what I have to do :(.
I'm currently using Unity Pro 4.5.5f1, DX11, and HDR cameras with tonemapping (just in case these are relevant to the issue)

2 Replies

Replies have been turned off for this discussion
  • Do you have something in the namespace that redefines "Action"? You may need to remove it or do something like the following:

    public delegate void Action ();
  • lmgg's avatar
    lmgg
    Honored Guest
    Thanks a whole lot!! That seemed to be exactly the problem, there was an enum named Action in an old library of mine, I renamed it, and all works now. :D