MouseOver
put this on your GameObjectusing UnityEngine; public class MouseOver : MonoBehaviour { public bool mouseOver = false; void OnMouseOver() { mouseOver = true; } void OnMouseExit() { mouseOver = false; } }
using UnityEngine; public class MouseOver : MonoBehaviour { public bool mouseOver = false; void OnMouseOver() { mouseOver = true; } void OnMouseExit() { mouseOver = false; } }