I am currently using ScreenPointToRay and Physics.Raycast to have the destination for my players NavmeshAgent determined when clicking somewhere and getting a valid hit as a result. Unfortunately these Raycasts go through the Inventory UI and thus the player keeps moving around when clicking something in the Inventory UI.
I tried to see if the attached Graphic Raycaster component can do this, but whatever I set as settings in there, the issue remains. So I just wanted to ask, if there is any option in UIS to prevent this before I add something to my own methods to make an open UI ignore those raycasts?
I tried to see if the attached Graphic Raycaster component can do this, but whatever I set as settings in there, the issue remains. So I just wanted to ask, if there is any option in UIS to prevent this before I add something to my own methods to make an open UI ignore those raycasts?