Skip to main content

Material.SetTexture(string name, Texture value)

Sets a named texture.

Parameters:

NameTypeDescription
namestringProperty name, e.g. "_MainTex".
valueTextureTexture to set.

Usage

---@type Material
local material;

---@type string
local name;

---@type Texture
local value;


material.SetTexture(name, value)