Hi guys.
I’m new to unity, and i have a question.
I have a GameObject with SpriteRenderer Component. I want to do something when mouse enter / leave this sprite. So, I added new script, something like this:
void OnMouseEnter()
{
Debug.Log ("Tadaaa!");
}
void OnMouseExit()
{
Debug.Log ("yahooo!");
}
But seems like it doesn’t work.
Not sure, but maybe I can’t detect mouse events without something like collider?