Documentation

Unity Engine

Download Unity

Unity Engine

SetMatrix

Writes a matrix property.
Read time 1 minuteLast updated 6 days ago

Definition

SetMatrix(int, Matrix4x4)

Writes a matrix property.
public void SetMatrix(int nameID, in Matrix4x4 value)

Parameters

nameID

The property ID, from Shader.PropertyToID.

The value that the shader reads.

SetMatrix(string, Matrix4x4)

Writes a matrix property.
public void SetMatrix(string name, in Matrix4x4 value)

Parameters

name

The property name.

The value that the shader reads.