Skip to content

Api > Material > GetMatrix()


Material.GetMatrix(string name)⚓︎

Get a named matrix value from the shader.

Parameters:⚓︎

Name Type Description
name string The name of the property.

Returns:⚓︎

type Description
Matrix4x4 the named matrix value from the shader.

Usage⚓︎

---@type Material
local material;

---@type string
local name;


local val0 = material.GetMatrix(name)