I want to change my 3D Text's color when mouse over.

I guess it’s kinda stupid monkey’s code, but i’m newbee here, and wrote this using pieces of other codes. Why it doesn’t work?

using UnityEngine;
using System.Collections;

public class Menu : MonoBehaviour {
	
	// Use this for initialization
	void Start () {
		
	}
	
	// Update is called once per frame
	void Update () {
		OnMouseEnter ();
		OnMouseExit ();
		}

	void OnMouseEnter() {
		GetComponent<Renderer>().material.color = Color.red;	
		}
	void OnMouseExit() {
		GetComponent<Renderer>().material.color = Color.white;		
		}
	}

Does your 3D Text have a Collider?

You need a Collider to know when you enter and exit the object.

You also don’t need to put the events in Update (and you shouldn’t).