This version of Unity is unsupported.

Shader.GetPassCountInSubshader

Switch to Manual

Declaration

public int GetPassCountInSubshader(int subshaderIndex);

Parameters

subshaderIndex The index of the SubShader.

Description

Returns the number of passes in the given SubShader.