AAudioAgent
(AActor)
(AActor)
An AudioAgent is the window into the game world for an AudioSuperComponent. Because AudioSuperComponents are components, Unreal Engine requires an actor for them to be attached to. AudioAgents fulfill this role while also acting as the bridge to pass AudioEnvironment game parameters to environment aware AudioSuperComponents. AudioAgents are automatically pooled and assigned when using KAudioSystemStatics to interact with the KAudioSystem. The AudioAgent pool set in Project Settings > Plugins > KAudioSystem Settings also acts as the global KAudioSystem sound instance limiter.
NOTE: Using the SpawnSound() function on the KAudioSystemStatics instantiates an AudioSuperComponent to be manually controlled and managed. An AudioAgent is also spawned and assigned to this sound, but it is not taken from the AudioAgent pool.