SetMatrix
Set a matrix property.
阅读时间1 分钟最后更新于 1 个月前
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.