Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetMatrix

Set a matrix property.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule

SetMatrix(string, Matrix4x4)

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

Parameters

name

The name of the property.

The matrix value to set.

Remarks

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

SetMatrix(int, Matrix4x4)

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

Parameters

nameID

The name ID of the property retrieved by Shader.PropertyToID.

The matrix value to set.

Remarks

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