# mesh.getOptions()

**URL:** <https://forum.babylonjs.com/t/mesh-getoptions/41883>\
**Category:** Feature requests\
**Created:** [June 24, 2023, 9:26am UTC](https://forum.babylonjs.com/t/mesh-getoptions/41883 "2023-06-24T09:26:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![WillemCramer](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/willemcramer/32/11696_2.png) [@WillemCramer](https://forum.babylonjs.com/u/WillemCramer)\
**Post date:** [June 24, 2023, 9:26am UTC](https://forum.babylonjs.com/t/mesh-getoptions/41883/1 "2023-06-24T09:26:00Z")

</div>

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;

```

};

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [June 24, 2023, 4:15pm UTC](https://forum.babylonjs.com/t/mesh-getoptions/41883/2 "2023-06-24T16:15:13Z")

</div>

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

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

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

```

---

<div class="post-metadata">

**Author:** ![WillemCramer](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/willemcramer/32/11696_2.png) [@WillemCramer](https://forum.babylonjs.com/u/WillemCramer)\
**Post date:** [June 25, 2023, 4:26am UTC](https://forum.babylonjs.com/t/mesh-getoptions/41883/3 "2023-06-25T04:26:57Z")

</div>

Hi Evgeni 🙂  
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 🙂  
Back to complicated things. Have a lovely sunday.
