Randomization
Last updated
Last updated
To create a game with exceptional immersion and rich, vivid sound effects, using a vast sound library is one option. However, finding suitable and sufficiently varied sounds can be challenging, and employing numerous audio files can significantly increase the game's size. Therefore, the ideal approach is simply to use randomization.
BroAudio provides numerous randomization methods, all of which can be configured in the without writing any code.
If an AudioEntity has more than one clip. You can set its to 'Random'. It will randomly select one AudioClip based on its weight when it's played. Probability is calculated as Weight/Total sum of all weights.
Toggle the [RND] button next to the '' setting in AudioEntity, and set the random range.
Toggle the [RND] button next to the '' setting in AudioEntity, and set the random range.