Skip to main content

AudioSource.priority

NameType
prioritynumber

Description

Sets the priority of the AudioSource.

Extra Detail

Unity is virtualizing AudioSources, when there's more AudioSources playing than available hardware channels. The AudioSources with lowest priority (and audibility) is virtualized first. Priority is an integer between 0 and 255. 0=highest priority, 255=lowest priority.