Skip to main content

Material.GetColor(number nameID)

Get a named color value.

Parameters:

NameTypeDescription
nameIDnumberThe name ID of the property

Returns:

typeDescription
Colorthe 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.