is mouse over an object

If the mouse is over an object then i need unity to return true. i just want to be able to move the mouse over a plane and then have it return true. Any ideas?




Example →

var hover : boolean = false ;
function OnMouseEnter(){
   hover = true ;
function OnMouseExit(){
   hover = false ;
//this will turn true upon hovering, and when you quit hovering it will turn it back to false
// attaches to the object you want to hover