This version of Unity is unsupported.

Cubemap.mipmapCount

Switch to Manual
public int mipmapCount;

Description

How many mipmap levels are in this texture (Read Only).

The returned value includes the base level as well, so it is always 1 or more.