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
Remarks
Adds a property to the block. If a matrix property with the given name already exists, the old value is replaced.
Additional Resources: MaterialPropertyBlock.SetColor, MaterialPropertyBlock.SetVector, MaterialPropertyBlock.SetFloat, MaterialPropertyBlock.SetTexture.
SetMatrix(int, Matrix4x4)
Set a matrix property.
public void SetMatrix(int nameID, Matrix4x4 value)
Parameters
Remarks
Adds a property to the block. If a matrix property with the given name already exists, the old value is replaced.