기술 자료

Unity Engine

Unity Engine

SetMatrix

Set a matrix property.
읽는 시간 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.