Garry's Mod Wiki


Panel vgui.GetHoveredPanel()


Returns the panel the cursor is hovering above.

This returns a cached value that is only updated after rendering and before the next VGUI Think/Layout pass.

ie. it lags one frame behind panel layout and is completely unhelpful for PANEL:Paint if your panels are moving around under the mouse a lot every frame.


1 Panel
The panel that the user is currently hovering over with their cursor.

Page Links

Special Pages



Render Time: 99ms

DB GetPage 39
Generate Html 2
SaveChanges (1) 39
Render Body 0
Render Sidebar 15