Exactly, during the callbacks. But I need to check in my own raycasting code if the user is above an UI element (I'm working on a 2d game so conceptionally everything is 2d).Why? UICamera.hoveredObject tells you whether the mouse is over a UI element, and UICamera.inputHasFocus tells you whether an input field currently has focus (user is typing).