Skip to main content
sh0v0r
Up and Coming
October 27, 2014

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

    1 reply

    Inspiring
    October 27, 2014
    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.