ISceneUserConfig
Scene 的用户配置,涵盖背景、背景音乐、语音映射与图层
interface ISceneUserConfig {
/**
* Background music
*/
backgroundMusic: Sound | null;
/**
* Background music fade duration, in milliseconds
*/
backgroundMusicFade: number;
/**
* Voice map or a function that returns the voice URL
*/
voices?: VoiceIdMap | VoiceSrcGenerator;
/**
* Background src, can be a {@link Color} or an {@link Image}
*/
background: ImageSrc | Color;
/**
* An array of {@link Layer}s
*/
layers: Layer[];
}- 关于 Sound,参见 Sound
- 关于 VoiceIdMap 和 VoiceSrcGenerator,参见 ISoundUserConfig
- 关于 ImageSrc,参见 ImageSrc
- 关于 Color,参见 Color
- 关于 Layer,参见 Layer