This version of Unity is unsupported.

Material.GetPassName

Switch to Manual
public string GetPassName(int pass);

Description

Returns the name of the shader pass at index pass.

Returns the name of the shader pass at index pass. It will return an empty string if the pass does not exist.

See Also: FindPass.