Skip to main content

MaterialPropertyBlock.SetTexture(string name, Texture value)

Set a texture property.

Parameters:

NameTypeDescription
namestringThe name of the property.
valueTextureThe Texture to set.

Usage

---@type MaterialPropertyBlock
local materialpropertyblock;

---@type string
local name;

---@type Texture
local value;


materialpropertyblock.SetTexture(name, value)

Extra Detail

Adds a property to the block. If a texture property with the given name already exists, the old value is replaced.