Class AudityBatchGroup
Coordinates DarkEffekt.Audity.AuditySource instances that share it, capping how many play at once and detecting trigger bursts. Assign the same group asset to every source that should count against the cap.
Assembly: DarkEffekt.Audity.Runtime
Section titled “Assembly: DarkEffekt.Audity.Runtime”[CreateAssetMenu(menuName = "Audity/Batch Group", fileName = "New Batch Group", order = 21)][Icon("Packages/com.darkeffekt.audity/Editor/Icons/Assets/AudityBatchGroup.png")]public sealed class AudityBatchGroup : ScriptableObjectInheritance: System.Object -> UnityEngine.Object -> UnityEngine.ScriptableObject
Fields
Section titled “Fields”maxInstances
Section titled “maxInstances”How many members may sound at once, and how many triggers fit in the coalesce window, before overflow kicks in.
[Tooltip("How many members may sound at once (and how many triggers fit in the coalesce window) before the overflow behavior kicks in.")][Min(1)]public int maxInstancescoalesceWindowSeconds
Section titled “coalesceWindowSeconds”Triggers arriving within this many seconds of each other count as one burst; 0 disables burst counting.
[Tooltip("Triggers arriving within this many seconds of each other count as one burst. 0 disables burst counting; only the concurrent cap applies.")][Min(0)]public float coalesceWindowSecondsradius
Section titled “radius”Only members within this distance of each other count together; 0 makes the group global.
[Tooltip("Only members within this distance of each other count together. 0 = the group is global.")][Min(0)]public float radiusoverflow
Section titled “overflow”What happens to a play request that would exceed the cap.
public AudityBatchOverflow overflowcompositeGraph
Section titled “compositeGraph”Played once at the members’ centroid when a burst overflows under DarkEffekt.Audity.AudityBatchOverflow.PlayComposite.
[Tooltip("Played once at the members' centroid when a burst overflows (Play Composite).")][FormerlySerializedAs("compositeAsset")]public AudityGraph compositeGraphintensityParameterName
Section titled “intensityParameterName”Optional name of a parameter that receives the coalesced trigger count on the composite instance.
[Tooltip("Optional: this parameter receives the number of coalesced triggers on the composite instance (e.g. drive a Parameter In → gain).")]public string intensityParameterNamecooldownSeconds
Section titled “cooldownSeconds”After the composite fires, further triggers near it are swallowed for this many seconds.
[Tooltip("After the composite fires, further triggers near it are swallowed for this many seconds.")][Min(0)]public float cooldownSecondsstealFadeSeconds
Section titled “stealFadeSeconds”Fade-out applied to members that are stopped by stealing or by the composite swap.
[Tooltip("Fade-out applied to members that are stopped by stealing or by the composite swap.")][Min(0)]public float stealFadeSeconds