How to remove UI widget when focus lost?

I had a similar problem, which I solved by adding a lower z-order border to the whole screen, then assigning an on-click event to that. The OnFocusLost seemed to not work for me.

1 Like