MaterialPropertyBlock.SetFloat(string name, number value)
Set a float property.
Parameters:
Name | Type | Description |
---|---|---|
name | string | The name of the property. |
value | number | The float value to set. |
Usage
---@type MaterialPropertyBlock
local materialpropertyblock;
---@type string
local name;
---@type number
local value;
materialpropertyblock.SetFloat(name, value)
Extra Detail
Adds a property to the block. If a float property with the given name already exists, the old value is replaced.