Garry's Mod Wiki

Panel:GetSelectionCanvas

  Panel Panel:GetSelectionCanvas()

Description

Returns the panel object (self) if it has been enabled as a selection canvas. This is achieved using Panel:SetSelectionCanvas.

Returns

1 Panel
The panel object this method was called on if enabled as a selection canvas, otherwise nil.