I only found an api that listens for specific frames.
let event = new BABYLON.AnimationEvent(
40,
function () {
//
},
true
);
animation.addEvent(event);
Is there a function to listen to every frame?
thanks