Play Area RTS

Hello All,

I have a problem. I’m working on an RTS and I want to make it so that if one clicks on the screen one will only select units on the screen that aren’t covered by the UI elements. So I need to define the playing area. Is there a way to do this? Draw a box around the are of the screen that looks at the map and say that one can click on the units in that area. My UI consists of two bars, one small one at the top of the screen and another one at the bottom. Thanks for literally even reading this to the end.

it’s the other way around, block the clicks from passing through the UI