Skip to main content

Material.SetFloat(string name, number value)

Sets a named float value.

Parameters:

NameTypeDescription
namestringProperty name, e.g. "_Glossiness".
valuenumberFloat value to set.

Usage

---@type Material
local material;

---@type string
local name;

---@type number
local value;


material.SetFloat(name, value)