Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

MaterialPropertyBlock.GetMatrix

Declaration

public Matrix4x4 GetMatrix(string name);

Declaration

public Matrix4x4 GetMatrix(int nameID);

Parameters

nameID The name ID of the property retrieved by Shader.PropertyToID.
name The name of the property.

Description

Get a matrix from the property block.

Returns identity matrix if not found.