Skip to main content

MaterialPropertyBlock.SetMatrix(string name, Matrix4x4 value)

Set a matrix property.

Parameters:

NameTypeDescription
namestringThe name of the property.
valueMatrix4x4The matrix value to set.

Usage

---@type MaterialPropertyBlock
local materialpropertyblock;

---@type string
local name;

---@type Matrix4x4
local value;


materialpropertyblock.SetMatrix(name, value)

Extra Detail

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