PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

WindowFocusReleased

WindowFocusReleased fires immediately when the user stops interacting with the PluginGui’s window, usually by clicking on on something not in the window. This functions works similarly to the similarly-named UserInputService/WindowFocusReleased event.

If focus is moving to another PluginGui while the user had this PluginGui in focus, then this event fires before the other’s PluginGui/WindowFocused|WindowFocused event. However, if the main game window is being put in focus, this event fires after UserInputService/WindowFocused.


Code Samples


Detecting PluginGui Focus State

This code sample demonstrates how the focus state of a PluginGui can be tracked using the PluginGui/WindowFocused|WindowFocused and PluginGui/WindowFocusReleased|WindowFocusReleased events. It changes the PluginGui/Title|Title as the focus state changes.