Skip to main content

MaterialPropertyBlock.GetTexture(string name)

Get a texture from the property block.

Parameters:

NameTypeDescription
namestringThe name of the property.

Returns:

typeDescription
Texturetexture from the property block.

Usage

---@type MaterialPropertyBlock
local materialpropertyblock;

---@type string
local name;


local val0 = materialpropertyblock.GetTexture(name)