Quick way to disable mouse events - click, hover etc

I am looking for a way to disable any mouseclick event when an animation is playing. Such that buttons, camera movement, etc. are disabled till the animation has finished playing. Once it is done, I will re-enable the mouse event.

Adding @PolygonalSun

I got it :slight_smile:

scene.detachControl(); // to deactivate all controls

setTimeout(function() {
      scene.attachControl(true, true, true); // to reactivate them 
}, 1500);
1 Like