Closed Cpk0521 closed 1 month ago
找不到相關api 只能這樣做
_eyeBlinkAnimation(trackIndex: number, animationName: string, time : number = 1){
this._model.state.setAnimation(trackIndex, animationName, false);
this._model.state.tracks[trackIndex].listener = {
complete : () => {
clearTimeout(this._eyeBlinkTimeout);
this._eyeBlinkTimeout = setTimeout(()=>{
this._eyeBlinkAnimation(trackIndex, animationName, time);
}, time * 1000)
}
}
}
EyeBlink loop problem