This event fires when the Gamepad selector stops focusing on the
If you want to check from the Gamepad select starts focusing on the GUI element, you can use the
When a GUI loses selection focus, the value of the
GuiService/SelectionObject|SelectionObject property changes either to nil or to the GUI element that gains selection focus. To determine which GUI gained selection, or if no GUI is selected, check the value of this property.
Handling GUI Selection Lost
The following example prints a message when the element has its focus lost on a gamepad.
In order for this to work as expected, it must be placed in a
LocalScript and a child of gui.