• Hi Guest!

    We are extremely excited to announce the release of our first Beta for VaM2, the next generation of Virt-A-Mate which is currently in development.
    To participate in the Beta, a subscription to the Entertainer or Creator Tier is required. Once subscribed, download instructions can be found here.

    Click here for information and guides regarding the VaM2 beta. Join our Discord server for more announcements and community discussion about VaM2.
SoundFromAssetBundle

Plugins + Scripts SoundFromAssetBundle

Download [0.01 MB]
If you like this plugin, consider giving it a thumbs up or posting a review. Thanks! (y)
Requires VaM v1.20 or newer
SoundFromAssetBundle

Additions to the SoundFromAB LogicBrick from MacGruber.LogicBricks.14.var:
  • AutoPlay popup (can be triggered as well)
    • Off: default, playback stops when clip ends
    • Next: next clip from the asset bundle folder plays when the clip ends
    • Shuffle: a random clip from the asset bundle 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 asset bundle 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 auto play Next or Shuffle, mode should be at PlayNowClearQueue, so that auto play 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 auto play feature works on clips in the asset bundle folder, independently of the AudioSource's own queue.

Credits

Thanks to @VamEssentials for the ideas and testing!

Share this resource

Latest reviews

Positive
Version: v1.0.0 (1.var)
Posted:
This plugin is a game changer for audio players in VAM! It lets you basically create a fully functional VLC / Spotify like music player in VAM. There is currently no way to get that full audio player functionality in VAM without this plugin or until it was created. Some things I've created with it so far on the hub are SFX Sound Board, used it in a music player in Get Her Pregnant, used it in Web Media Player, Media Player and Audio Player. You can reference any of those on how you can use it and what triggers to use to get it to do certain things. It's an excellent plugin that I highly recommend! Awesome work on this one!
Upvote 0
Back
Top Bottom