For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /server/interfaces/MusicOptions.md.

Interface: MusicOptions

Beta

用于 World.playMusic/World.queueMusic 方法的额外配置选项。

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

Properties

fade?

optional fade?: number

Beta

Remarks

指定音乐播放结束时的淡出重叠量。

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


loop?

optional loop?: boolean

Beta

Remarks

如果设置为 true,此音乐曲目将重复播放。

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


volume?

optional volume?: number

Beta

Remarks

音乐的相对音量级别。

Relative volume level of the music.