Loaded Mesh object instaces changes on Button click

Hi @all,
In my demo project I uploaded a bike mesh (glb file) which is appear on screen.
Now I added a button to perform toggle the mesh object like If I click on show button the Wave will be appear on the mesh But If I click on hide button the Wave will be hide.

can anyone tells me how to perform these type of operations?

After all your meshes are loaded:

const wave = scene.getMeshByName("Wave")

then in order to hide this mesh call

wave.isVisible = false;




Thanks @labris
It solved my issue.

1 Like