Dealing with transparent screen over buttons

okay, i have a ui going over some buttons… the ui has a transparent background… the issue is that when the ui is open, i don’t want the user to be able to click on anything but the ui… as it is right now, the user can click through the ui and outside of it… is there anyway to restrict the users interaction of something like that?