My game is mouse controlled and use raycasting to detect where the user clicked. Additionally i use EventSystem.IsPointerOverGameObject to detect if the mouse is over my main GUI Elements so i dont click “through” them. That works fine.
Now i have a few more GUI Elements like damageTexts or healthbars. I dont want them to block the mouse clicks. Is there any way to exclude them from IsPointerOverGameObject?
Or is there any other way to solve my problem?
Thanks in advance