⚠️ This site is under development, some artefacts may be missing or incomplete.
UI3D2D
DrawVGUI

DrawVGUI

ui3d2d.drawVgui( Panel panel, Vector position, Angle angles, number scale, Entity ignoredEntity = nil )

Description

⚠️

This method is only available when the UI3D2D extras (opens in a new tab) are included.

ℹ️

Do not call EndDraw() when using this method, it is done automatically.

Draws the given VGUI panel in 3D space and allows the player to interact with it.

Arguments

Panel panel

The VGUI panel to draw.

Vector position

The position to draw the UI at.

Angle angles

The angle which the UI should face.

number scale

The UI scale factor.

Entity ignoredEntity = nil

The entity to ignore when calculating the cursor's position.