Skip to content

Api > MaterialPropertyBlock > SetTexture()


MaterialPropertyBlock.SetTexture(string name, Texture value)⚓︎

Set a texture property.

Parameters:⚓︎

Name Type Description
name string The name of the property.
value Texture The 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.