Not able To send integer as a parameter on onclick?

My onclick function won’t take integer as parameter instead it asks for an object, I have been facing this issue for months, to solve this issue i would need to create a new script with just one public int parameter and pass that object in argument field and select that integer, but i am sick of doing it, is there no other solution to send the parameter normal way?

NOTE: This happens when i am using NGUI and UI button script is attached.

57070-capture.png
57071-capture1.png

I’m closing this question - NGUI is a third party asset. If you have questions about it, I’d recommed visiting the NGUI support site.

As @npatch said, a default Unity button can take integer arguments. They have some drawbacks though (multiple arguments are not supported), so you’ll have to pick which one you want.