How to Create a Music Toggle Button - Udon/ VRChat SDK3.0
Here's a tutorial covering how to create a music toggle button for one or many music in your world! The first part only covers how to toggle it for one song/ audio source, but then I expand the script to covering a multi button setup. That does however come at the cost at needing more nodes, which I hope doesn't become too overwhelming... As for the multi-button setup, it could also be done by having an udonBehaviour on the audioSource gameObject, and having an audioClip[] with all the songs. Then you would just changing it's int according to the piece being played. If you wanted a setup where it plays one music after the other instead of a looping track, then that approach would likely be much better. Perhaps I'll make a video on that in the future... let me know if that sounds like something you'd like! So hopefully this is helpful. As always, if you have any questions, feel free to ask in the comments bellow! ^^ Call an event on another script tutorial: https://www.youtube.com/watch?v=0yMwbl25k3c Come join the discord! https://discord.gg/jjdnCWVvKg Wanna help support me in making more vrchat stuff? Support me on patreon! (I'm grateful for any support ^^') https://patreon.com/PlayerBush001 Chapters: 0:00 Intro 0:10 Toggle Music Playing 3:23 Make Toggle Global/ Networked 5:05 Button to Change the Music Being Played 7:27 Edit That Button to Avoid a Bug 9:03 Combine Music Toggle Button with Change Music Button 12:20 Make New Button Global/ Networked #VRChat #Udon #SDK3
Download
0 formatsNo download links available.