文档

Unity Engine


Unity Engine


spriteBatchVertexThreshold

Specifies the max vertex limit for Sprite batching.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Property
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public static int spriteBatchVertexThreshold { get; set; }

Remarks

Unity will automatically batch SpriteRenderers into the same draw call if they share the same Material and fulfill other criteria. The default limit is 300 vertices and this setting allows users to override this limit in the range (300, 8000). See also: Dynamic Batching.