Additions to the SoundFromAB LogicBrick from MacGruber.LogicBricks.14.var:
In this plugin and the original one, there is a Mode popup which sets how the audio clip is played. Generally, when using autoplay Next or Shuffle, mode should be at PlayNowClearQueue, so that autoplay will always play the clip with that mode. You don't need to (and shouldn't) queue clips using the QueueClip and PlayNext modes, the autoplay feature works on clips in the assetbundle folder, indepedently of the AudioSource's own queue.
Thanks to @VamEssentials for the ideas and testing!
- AutoPlay popup (can be triggered as well)
- Off: default, playback stops when clip ends
- Next: next clip from the assetbundle folder plays when the clip ends
- Shuffle: a random clip from the assetbundle folder plays when the clip ends
- PlayNext trigger action plays the next clip in the folder. However, if Shuffle is selected, it plays a random clip, or the next clip in the list of previously shuffled clips (assuming you've triggered PlayPrevious while shuffling). This is similar to how Spotify works.
- PlayPrevious trigger action plays the previous clip in the folder. However, if Shuffle is selected, it plays the previously played shuffled clip, or the current clip if at the beginning of the shuffle history. This is also similar to how Spotify works.
- Updated the assetbundle file browser to show shortcuts to var packages
In this plugin and the original one, there is a Mode popup which sets how the audio clip is played. Generally, when using autoplay Next or Shuffle, mode should be at PlayNowClearQueue, so that autoplay will always play the clip with that mode. You don't need to (and shouldn't) queue clips using the QueueClip and PlayNext modes, the autoplay feature works on clips in the assetbundle folder, indepedently of the AudioSource's own queue.
Thanks to @VamEssentials for the ideas and testing!