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:
Name | Type | Description |
---|---|---|
name | string | The name of the property. |
value | number | The int value to set. |
Usage
---@type MaterialPropertyBlock
local materialpropertyblock;
---@type string
local name;
---@type number
local value;
materialpropertyblock.SetInt(name, value)