mesh.getOptions()

would be SO handy

var createScene = function() {
var scene = new BABYLON.Scene(engine)var box = BABYLON.MeshBuilder.CreateBox("box", {size:.89})
scene.createDefaultCameraOrLight(true, true, true)
scene.createDefaultEnvironment()
var camera = scene.cameras[0]
camera.beta = 1
camera.alpha = Math.PI/4
console.clear()

// hoping for 'size:0.89'
console.log(box.options)

return scene;

};

2 Likes

Doing it automatically would consume memory when you need this feature only infrequently (I don’t think we ever had someone asking for it :slight_smile:).

You can do it yourself, if you need to keep track of the option list:

const options = {size:.89};
var box = BABYLON.MeshBuilder.CreateBox("box", options);
box.options = options;

Hi Evgeni :slight_smile:
I know of course. I just had a moment trying to console.log some stuff and staring at the list of things you can get and not finding options. It would be a very small piece of code to implement so i thought: “Why not ask for it”?
It would make perfect sense.
ANYWAY :slight_smile:
Back to complicated things. Have a lovely sunday.