UnityMusicPlayerVisualizer is a Unity plugin that accesses the iOS music library, plays a song and gets the sound level. This plugin is inspired by asus4/UnityMusicPlayerPlugin.
- Unity2020.1.13f1
- Xcode12.2
Get the song with MPMediaPickerController, play the sound with AVAudioPlayer, and get its sound level with averagePowerForChannel.
- Accessing music library
- Play/Stop the song
- Acquisition of song information
※ Streaming music such as Apple Music is not supported.
[Unity][iOS] iOSのミュージックライブラリの楽曲を再生し、オーディオビジュアライズする
Download one of the unitypackage files from the Releases page and import it to a project.