Detect if UI buttons are touching each other (Dance Game)

Hi,

I am looking to create a dance style game where the buttons move across the screen.

I am looking to detect when these button collide with a button (or gui object). I have tried the ONCOLLISIONENTER function with a rigid body but I have had no success so far.

Could anyone suggest a way of doing this?

Thanks in advance,

I have now solved this. I used a 3d box collider along with the rigid body as usual. I had to add to adjust the size of the collider as it was very small. Hope this will help someone.