This version of Unity is unsupported.

CanvasRenderer.popMaterialCount

Switch to Manual
public int popMaterialCount;

Description

The number of materials usable by this renderer. Used internally for masking.