MaterialPropertyBlock.SetMatrix(string name, Matrix4x4 value)
Set a matrix property.
Parameters:
Name | Type | Description |
---|---|---|
name | string | The name of the property. |
value | Matrix4x4 | The 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.