Hey all! I’m trying to make a movement system and other stuff where you click to interact with environmental stuff. The problem I have right now is if I click any part of my UI (inventory, buttons, avatar pic, etc) my code still runs that interacts with the world. Usually this means when I click I move to where I click. But I don’t want to have that script run when over a UI object.
How do I check to make sure I’m not over a UI object before running code with a raycast?