Skip to main content

MaterialPropertyBlock.SetInt(string name, number value)

Adds a property to the block. If an int property with the given name already exists, the old value is replaced.

Parameters:

NameTypeDescription
namestringThe name of the property.
valuenumberThe int value to set.

Usage

---@type MaterialPropertyBlock
local materialpropertyblock;

---@type string
local name;

---@type number
local value;


materialpropertyblock.SetInt(name, value)