Skip to content

Api > Material > GetColor()


Material.GetColor(number nameID)⚓︎

Get a named color value.

Parameters:⚓︎

Name Type Description
nameID number The name ID of the property

Returns:⚓︎

type Description
Color the named color value.

Usage⚓︎

---@type Material
local material;

---@type number
local nameID;


local val0 = material.GetColor(nameID)
ra Detail

Many shaders use more than one color. Use GetColor to get the propertyName color.