Additional configuration options for World.playMusic/World.queueMusic methods.

interface MusicOptions {
    fade?: number;
    loop?: boolean;
    volume?: number;
}

Properties

Properties

fade?: number

Specifies a fade overlap for music at the end of play.

loop?: boolean

If set to true, this music track will play repeatedly.

volume?: number

Relative volume level of the music.