기술 자료

Unity Engine

Unity Engine

passCount

How many passes are in this material (Read Only).
읽는 시간 1분최근 업데이트: 한 달 전

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.