Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


passCount

How many passes are in this material (Read Only).
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public int passCount { get; }

Remarks

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: Material.SetPass function, GL class, ShaderLab documentation.