Audio Effect
Introduction
Audio effects can enhance the immersion and fun of your game. BroAudio supports all the built-in effects of the Unity Audio Mixer and allows dynamic adjustment of all parameters during gameplay.
How To Use
Create an 'Effect' data struct
To trigger an audio effect at runtime, you need to create an 'Effect' struct with the parameter values via the static factory methods. This data will be passed as a parameter to the SetEffect APIs.
BroAudio.SetEffect(Effect, BroAudioType)
Common use cases and API examples:
When the player is underwater
Add more effect
Bro Audio only offers two initial effects, but you can add more! However, since BroAudio has already set up a comprehensive audio mixer with numerous Exposed Parameters, editing it directly through Unity's Audio Mixer Window can be challenging.
Therefore, it's highly recommended to use the 'Audio Effect Editor' to add more effect. It lets you focus on the 'Effect' track and only displays the Exposed Parameters of the Audio Effects.
Limitation
Currently, BroAudio only provides one Effect track, so it's not possible to add different Effects to various sounds individually. More versatile and powerful Audio Effect features are still in development. Please be patient, and feel free to provide feedback, suggestions, or support to BroAudio, helping expedite the release of this feature.
Last updated