Material.passCount

Switch to Manual
public int passCount;

Description

How many passes are in this material (Read Only).

This returns the number of passes made such as in direct drawing code. For example, drawing 3D primitives with GL.Begin, GL.End, and also drawing meshes using Graphics.DrawMeshNow.

Additional resources: SetPass function, GL class, ShaderLab documentation.


Did you find this page useful? Please give it a rating: