File
Constructor
constructor(text: string, audioFileName: string, time: number, offset: number, length: number)
|
Parameters :
-
text
Texte affiché dans la bulle
-
audioFileName
Nom de fichier audio (asset) dans BabylonJS
-
time
— (optional) Start the sound after X seconds. Start immediately (0) by default.
-
offset
— (optional) Start the sound at a specific time in seconds
-
length
— (optional) Sound duration (in seconds)
|
|
audioFileName
|
audioFileName: string
|
export class ScenarioBjs {
audioFileName: string;
text: string;
time: number;
offset: number;
length: number;
/**
* @param text Texte affiché dans la bulle
* @param audioFileName Nom de fichier audio (asset) dans BabylonJS
* @param time — (optional) Start the sound after X seconds. Start immediately (0) by default.
* @param offset — (optional) Start the sound at a specific time in seconds
* @param length — (optional) Sound duration (in seconds)
*/
constructor(text: string, audioFileName: string, time: number, offset: number, length?: number){
this.text = text;
this.audioFileName = audioFileName;
this.time = time;
this.offset = offset;
this.length = length;
}
}