# MeshButton3D mesh question

**URL:** <https://forum.babylonjs.com/t/meshbutton3d-mesh-question/17286>\
**Category:** Bugs\
**Created:** [January 7, 2021, 7:32pm UTC](https://forum.babylonjs.com/t/meshbutton3d-mesh-question/17286 "2021-01-07T19:32:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Blax](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/blax/32/37851_2.png) [@Blax](https://forum.babylonjs.com/u/Blax)\
**Post date:** [January 7, 2021, 7:32pm UTC](https://forum.babylonjs.com/t/meshbutton3d-mesh-question/17286/1 "2021-01-07T19:32:20Z")

</div>

Hi

Please take a look at  
[https://playground.babylonjs.com/#C0SYBY](https://playground.babylonjs.com/#C0SYBY)

It is a normal behaviour?  
Why we can’t get mesh property while addControl not complete? We determinate mesh in constructor.  
I think it not correct, but im not sure.  
Also \_currentMesh internal property is setted to mesh.  
But we not have any signals about have Object mesh property or not. Only many check’s?

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [January 7, 2021, 7:44pm UTC](https://forum.babylonjs.com/t/meshbutton3d-mesh-question/17286/2 "2021-01-07T19:44:26Z")

</div>

This is because the 3D gui mesh is created based on the manager properties (it needs a lot of info flowing from it) like the hosting layer scene, metadata, etc…

Hence the delayed creation of the property value 😉

---

<div class="post-metadata">

**Author:** ![Blax](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/blax/32/37851_2.png) [@Blax](https://forum.babylonjs.com/u/Blax)\
**Post date:** [January 7, 2021, 10:22pm UTC](https://forum.babylonjs.com/t/meshbutton3d-mesh-question/17286/3 "2021-01-07T22:22:18Z")

</div>

Thank’s, i catch it.  
Then, would be great have a ready callBack or Observer?  
With async processes that ambiguity might be problem.

As example - panels have IColorable interface, and of cource use mesh from Controls3D, but how we can be sure, that interface ready to change materials and colors in that case?

How you think? Perhaps it will be possible in further? onReady callback maybe?

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [January 8, 2021, 6:30pm UTC](https://forum.babylonjs.com/t/meshbutton3d-mesh-question/17286/4 "2021-01-08T18:30:21Z")

</div>

It is a good idea…wanna do a PR to add it at Control level?

---

<div class="post-metadata">

**Author:** ![Blax](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/blax/32/37851_2.png) [@Blax](https://forum.babylonjs.com/u/Blax)\
**Post date:** [January 15, 2021, 8:03am UTC](https://forum.babylonjs.com/t/meshbutton3d-mesh-question/17286/5 "2021-01-15T08:03:43Z")

</div>

I afraid just now i can’t do this because not sure that my level is enought for that.  
But i will add it in TODO and going to try )
