OnMouseOver with Polygon Collider2D not working for Gameobjects with Y >= 0
I'm currently stuck with following problem. In my 2d TopDown game i want to detect if the User is pressing a mouse button while over a gameobject. I set up a PolygonCollider2D on those gameobjects and activated the is trigger option since i dont want my character colliding with this 2dCollider. Then I attached a script to this gameobject .
 public void OnMouseOver()
         {
 
             if (Input.GetMouseButton(0))
             {
               Debug.Log("Test");
             }
  }
this works perfectly for all gameobjects with coordinates below y 0. For all gameobjects above 0 it doesnt register the mouse input. One thing i noticed is that if i turn off the OnTrigger option on the gameobjects above y 0 it works again. But i need them to work with the OnTrigger option activated since i dont want my character colliding with it.
Any ideas how i could fix this?
Your answer
 
 
             Follow this Question
Related Questions
Calculate BoxCollider2D based on the actual player sprite 2 Answers
Unity 2D: Glitchy Collision/Triggers Problem 0 Answers
OnMouseExit triggering when its not supposed to 1 Answer
OnMouseOver wont work with fps Controller 0 Answers
Bounds and extents of a tilemap collider across differing y axes, Tilemap collider bounds 0 Answers
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                