How to dynamically change paramters (options) of a mesh?

I’ve got a box and I’ve set its options (width, height, facecolors…). Now I want to change the colors at a pickEvent, but I don’t know how to access them? is it even possible? Or are these options just used to build the mesh and thereafter useless?

options (line 29)

 var options = {
        width: 10,
        height: 3,
        depth: 5,
        faceColors: faceColors

pickEvent (line 42)

 scene.onPointerDown = function (evt, pickResult) {
        if (pickResult.hit) {
          //box.options.faceColors[4] = 15; // doesnt work
        //  box.faceColors[4] = new BABYLON.Color4(255, 255, 255, 1); // doesnt work
       //  faceColors[4] = new BABYLON.Color4(255, 255, 255, 1);// doesnt work

I just found the parameter “updatable” and added ti to the options, but nothing changes? How is it meant to work?

Correct, just on build. For width, height and depth you can use the scaling property

For colors you would need make the box option updatable = true and update the vertex data colors directly Update Vertices - Babylon.js Documentation