Skip to main content

Material.HasProperty(number name)

Checks if material's shader has a property of a given name.

Parameters:

NameTypeDescription
namenumberThe name of the property.

Returns:

typeDescription
booleanTrue if material's shader has a property of a given name.

Usage

---@type Material
local material;

---@type number
local name;


local val0 = material.HasProperty(name)