Texture.mipmapCount

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.