MouseOver

put this on your GameObject
mail@pastecode.io avatar
unknown
plain_text
3 years ago
223 B
2
Indexable
Never
using UnityEngine;

public class MouseOver : MonoBehaviour
{
    public bool mouseOver = false;

    void OnMouseOver()
    {
        mouseOver = true;
    }

    void OnMouseExit()
    {
        mouseOver = false;
    }
}