This version of Unity is unsupported.

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.