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.


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.