spriteBatchVertexThreshold
Specifies the max vertex limit for Sprite batching.
Read time 1 minuteLast updated 12 days ago
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.