VRChat Prefabs - Udon Music Player With Spectrums
- Digital500 JPY

A music player for udon worlds with basic music player functions. This prefab allows you set an image for each clip, choose which clip to be play, a music visualizer and three play mode to set. Feel free to customize it if needed. This prefab is using UdonSharp so please import UdonSharp before importing this prefab, a tool developed by Merlin for C# coding within Udon: https://github.com/Merlin-san/UdonSharp You can find the prefab in this world: https://vrchat.com/home/launch?worldId=wrld_1ec7006b-43f0-4336-8619-fffab7a39129
update 1/2/2022
Add Bar width Option, now you can set the bar a preferred width. Add Sync Music Player prefab (contained in 4202021Updated package). With this prefab, everyone in room can play the same song, with synced volume, mute/unmute, pause/play. Option "Owner Only" will decide who can control the music player, owner or anyone. Fixed an issue when using dynamic bar color option, default unity UI material color be override.
update 4/20/2021
add max Bar Size option for adjust the max size of the spectrum bars; add dynamic bar color function. This option can change the bar color according to the image. This will happen when changing the audio clip. To enable this, you will need to check the dynamicBarColor option in the UdonBehaviour, and make the image read/write enabled, you can find this option in the import setting.