Does Animatable have the dispose function

const xSlide = new BABYLON.Animation("xSlide", "position.x", frameRate, BABYLON.Animation.ANIMATIONTYPE_FLOAT, BABYLON.Animation.ANIMATIONLOOPMODE_CYCLE);

    const keyFrames = []; 

    keyFrames.push({
        frame: 0,
        value: 2
    });

    keyFrames.push({
        frame: frameRate,
        value: -2
    });

    keyFrames.push({
        frame: 2 * frameRate,
        value: 2
    });

    xSlide.setKeys(keyFrames);
let slidAnimatable =  scene.beginDirectAnimation(box, [xSlide], 0, 2 * frameRate, true);

How do I dispose of slidAnimatable

        slidAnimatable.stop()
        slidAnimatable = null

Example - https://playground.babylonjs.com/#0CQSZB#11

1 Like

Thank you