public int GetPassCountInSubshader(int subshaderIndex);
Возвращает количество проходов в заданной SubShader.