Hello,
I’d like to detect when the player’s mouse pointer enters and exits a 2d box collider. I’m really not sure where to start here.
I’ve done some things like add a Physics 2D Raycaster to the main camera, add an Event Trigger to the object w/ collider, and used the method like this:
public void OnPointerEnter(PointerEventData eventData)
{
Debug.Log("hello world");
}
Unfortunately, I’m having nothing happen.
Any advice or comments would be appreciated.
Thanks for reading and TIA if you happen to leave a reply <3