This version of Unity is unsupported.

Texture2DArray.depth

Switch to Manual
public int depth;

Description

Number of elements in a texture array (Read Only).