On Collider enter...

Hi guys,
If I have a button… how can I make some text visible by just placing pointer on button, without clicking it… so all I need is script funcion for using that collider on my button… ty

with collider can use OnMouseEnter()

I tried but its not working, its 2D game … I put a text in empty object … and in scipt i get reference for that Object … and Colliders on all the buttons … so I want to change text on the same panel just by crossing with mouse over them…

like mrgear said, you can use OnMouseEnter()
Make sure there are no colliders in front of the one you are using.
use debug.log mto double check your OnMouseEnter is firing.