renderer.enabled and no mesh?

Hi guys, I am doing messing around with some scripts ect and come across an issue with this script.

using UnityEngine;
using System.Collections;

public class hover : MonoBehaviour {


	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	}
	void OnMouseEnter(){
		renderer.enabled = false;
		renderer.collider.enabled = false;
	}
	void OnMouseExit(){
		renderer.enabled = true;
		renderer.collider.enabled = true;
	}
}

So all this does is kill the Mesh Renerer of a gameObject when the mouse enters it.

The issue is that when the mouse enters the gameObject the gameObject flashes on and off. its Strange, Is there a way to beat this?

Thanks.

Sounds like ‘working as expected’
you mouse on, the collider disables, therefore mouse is off, so it enables. Repeat

agh yes of course, so it is.

Is there a way to bring a deleted object back?

by using the link

OnMouseEnter()
Destroy(gameObject);

then with another line of OnMouseExit() Bring the object back?

I am not sure if it is, as I was told once it is gone, its gone. But I might of miss heard or miss read where ever I got that from!