Search Unity

2D Collider and GUI problem

Discussion in '2D' started by bonakulik, Jul 24, 2019.

  1. bonakulik

    bonakulik

    Joined:
    Jun 14, 2019
    Posts:
    2
    Hello everyone, I`m doing my own game and I stuck with a problem. Whenever I open my menu gui if I click on the object "under" my gui menu I trigger the collider. I fixed it with FindGameObjectsWithTag and gave tag "building" to each object that has a collider and then turned off their colliders. But is there a more "professional" solution to this problem?