Garry's Mod Wiki

DModelPanel:GetColor

table DModelPanel:GetColor()

Description

Returns the color of the rendered entity.

Returns

1 table
The color of the entity, see Color.

Example

Prints out the default entity color.

local mdl = vgui.Create("DModelPanel") mdl:SetPos(20, 20) mdl:SetSize(200, 200) mdl:SetModel("models/props_junk/watermelon01.mdl") print(mdl:GetColor())
Output:
255 255 255 255

Page Links


Special Pages


Wikis

?

Render Time: 30ms

DB GetPage 3
Generate Html 5
SaveChanges (1) 8
Render Body 0
Render Sidebar 12