Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

MaterialPropertyBlock.SetMatrix

Switch to Manual
public function SetMatrix(name: string, value: Matrix4x4): void;
public function SetMatrix(nameID: int, value: Matrix4x4): void;

Parameters

Description

Set a matrix property.

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

See Also: SetColor, SetVector, SetFloat, SetTexture.