Para Music Player

BGM Component:

You can set the default music, which music to start with, and the playback mode. This component offers a much more convenient and quicker way to set up the music.

Music Clips:

You can set the number of songs to be played (use local files or URLs) and choose your preferred play mode.

Component Property NamesProperty Descriptions
Audio ClipYou can drag the local music files to here. Supported formats: .aif, .wav, .mpeg, .ogg
UrlYou can copy the URL pointing to the music file to the input box, which will automatically be parsed and played after entering the world. (**Note: The Type below must be URL type in order for it to parse properly. Otherwise, it will ignore the URL.)
NameYou can enter the music name into the input box. You may also call this API directly to input the pre-entered music names if needed.
TypeYou can set the type of music that needs to be parsed:
BUILT_IN: Correspond to the local music files that need to be parsed.
URL: Correspond to the entered URLs that need to be parsed.

Music playback mode property:

Component Property NamesProperty Descriptions
Current Clip IndexYou can set which song to start with in this property (starts from 0).
Audio SourceSince the current component requires Audio Source to run, you must drag the components that require Audio Source to this location. (By default, Audio Source will be included in the mounting of this component, so it's recommended to remount the component in this property.)
Play OrderYou can set the playback types for the songs here. Playback types are as the followings:
Shuffle: Plays a random song in the queue when the current one is finished playing.
Loop: Plays the next song in the queue when the current one is finished playing. If this is the last song in the queue, then it starts from the beginning of the queue.
Repeat: Plays the same song again when it's done.
In Order Plays the next song in the queue when the current one is finished playing. If this is the last song in the queue, then it will go back to the beginning of the queue and pause the playback.