Skip to main content

MaterialPropertyBlock.GetInt(string name)

Get an int from the property block.

Parameters:

NameTypeDescription
namestringThe name of the property.

Returns:

typeDescription
numberint from the property block.

Usage

---@type MaterialPropertyBlock
local materialpropertyblock;

---@type string
local name;


local val0 = materialpropertyblock.GetInt(name)

Extra Detail

Returns zero if not found.