How to detect if the mouse is over the UI?

Set “Input Mode UI only” and set mouse to Do not Lock, then after ui work done “Input Mode Game Only” or “Input Mode Game and UI” and set mouse to Lock

1 Like