PcoWSkbVqDnWTu_dm2ix
Collapse Sidebar

Active

GuiObject

bool

This property determines whether a GuiObject will sink input to 3D space, such as underlying models with a ClickDetector. In other words, if the player attempts to click a ClickDetector with the mouse hovering over an Active UI element, the UI will block the input from reaching the ClickDetector.

For GuiButton objects (ImageButton and TextButton), this property determines whether GuiButton/Activated fires (GuiButton/AutoButtonColor will still work for those as well). The events GuiObject/InputBegan|InputBegan, GuiObject/InputChanged|InputChanged, and GuiObject/InputEnded|InputEnded work as normal no matter the value of this property.


Code Samples


TextButton Active Debounce

This code sample demonstrates the usage of the Active property as a debounce for the Activated event.