Skip to main content

MaterialPropertyBlock.GetFloat(string name)

Get a float from the property block.

Parameters:

NameTypeDescription
namestringThe name of the property.

Returns:

typeDescription
numberfloat from the property block.

Usage

---@type MaterialPropertyBlock
local materialpropertyblock;

---@type string
local name;


local val0 = materialpropertyblock.GetFloat(name)

Extra Detail

Returns zero if not found.