Skip to content

Api > MaterialPropertyBlock > GetVector()


MaterialPropertyBlock.GetVector(string name)⚓︎

Get a vector from the property block.

Parameters:⚓︎

Name Type Description
name string The name of the property.

Returns:⚓︎

type Description
Vector4 vector from the property block.

Usage⚓︎

---@type MaterialPropertyBlock
local materialpropertyblock;

---@type string
local name;


local val0 = materialpropertyblock.GetVector(name)