HI) Can I programmatically hide part of the model case? For example, remove her legs?) Mesh visability does not work properly.
https://jsfiddle.net/ahoxq4gz/2/
You can use
scene.getMaterialByID("Material_Name").alpha = 0;
or
scene.getMeshByID("Mesh_Name").isVisible=false;
Small example here https://www.babylonjs-playground.com/#U5SSCN#32
1 Like
Thanks) I tried differently, dispose, isVisible, visabality, removeMesh. It turned out that there was an error in the console)) I did not know that you can set the alpha parameter of the material, the documentation says: “Gets the alpha value of the material”