Hello,
I’m using Unity since a week in the 2D mode.
I’m trying to add mouse event listeners for a GUIText. I’ve attached a script to each GUIText in my scene but that doesn’t seem to work…
Do you have any idea ?
*I’ve included my C# script and a screen capture of the actual setup in unity.
using UnityEngine;
using System.Collections;
public class HUDItemController : MonoBehaviour
{
void OnMouseOver () {
Debug.Log ("mo");
}
void OnMouseUp () {
Debug.Log ("mu");
}
void OnMouseEnter () {
Debug.Log ("me");
}
}
