Forum Discussion

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

Unhandled Exception - 0.4.3

Unhandled Exception: Mono.CSharp.InternalErrorException: VerifyArgumentsCompat didn't find any problem with rejected candidate MethodBuilder [OVRGamepadController::GPC_GetAxis]

I migrated ZVR to the new SDK after fixing up my code that refers to the old class names I get the above. I cannot for the life of me work out what it is. What is unusual is that it works fine in my other projects. Something in the ZVR project must be conflicting with it but I don't have any leads as to what.

[EDIT]

On hunch I decided to change the parameter list for that method to:

GPC_GetAxis(Axis axis, float num = 0)

... and now it compiles! :shock:

1 Reply

Replies have been turned off for this discussion
  • Sorry, it looks like we left an API change out of the migration guide: OVRGamepadController now refers to axes by enum instead of int You need to migrate all calls to GPC_Get*(Axis ...) to avoid this error.