Get focused/hovered GuiButton

More use cases: PlayerGui GetCurrentGuiObject(), CurrentGuiObjectChanged

@Sharksie:
We’d have to loop through all GUI elements in our game, which would cause performance issues if we’re doing it every frame. Yes, we could optimize that, but UIS already keeps track of the current GUI object (see linked thread) and:

3 Likes