STSharedAudioLib
A standalone Component storing Lists of AudioClips to access from different mods.
By SimonTendo
CHANGELOG
v0.0.1
- Release
v0.0.2
- Added method AudioListContainsAudioClip()
- This will check if the given AudioList, SharedAudioComponent, or GameObject contains the given AudioClip
- Optionally, a weight integer can be given to check if the found AudioClip's AudioClipWithWeight also has the given weight
- When performing AudioListGetRandom() or AudioListGetRandomByWeight() and passing a GameObject to search, the random AudioList will now also be picked from a random SharedAudioComponent on the GameObject instead of the first found SharedAudioComponent, in case the GameObject contains multiple SharedAudioComponents
- Fixed minor error that could occur with the GetRandomByWeight() methods in case the given AudioClips or AudioLists had no weight
- Included a LICENSE markdown file