This version of Unity is unsupported.

Texture3D.depth

Switch to Manual
public int depth;

Description

The depth of the texture (Read Only).

See Also: width, height.