文档

Unity Engine

Unity Engine

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

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.