Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetMatrix4x4

Sets the value of a named Matrix4x4 property.
Read time 1 minuteLast updated 7 days ago

Definition

SetMatrix4x4(int, Matrix4x4)

Sets the value of a named Matrix4x4 property.
public void SetMatrix4x4(int nameID, Matrix4x4 v)

Parameters

nameID

The ID of the property. This is the same ID that Shader.PropertyToID returns.

The new Matrix4x4 value.

Remarks

Automatically changes overridden state for this property to true.

SetMatrix4x4(string, Matrix4x4)

Sets the value of a named Matrix4x4 property.
public void SetMatrix4x4(string name, Matrix4x4 v)

Parameters

name

The name of the property.

The new Matrix4x4 value.

Remarks

Automatically changes overridden state for this property to true.