Legacy Documentation: Version 2018.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

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

CommandBuffer.SetGlobalMatrixArray

public void SetGlobalMatrixArray(string propertyName, Matrix4x4[] values);
public void SetGlobalMatrixArray(int nameID, Matrix4x4[] values);
public void SetGlobalMatrixArray(string propertyName, List<Matrix4x4> values);
public void SetGlobalMatrixArray(int nameID, List<Matrix4x4> values);

Description

Add a "set global shader matrix array property" command.

When the command buffer will be executed, a global shader matrix array property will be set at this point. The effect is as if Shader.SetGlobalMatrixArray was called.

Did you find this page useful? Please give it a rating: