# Changing Textures on Imported GLB

**URL:** <https://forum.babylonjs.com/t/changing-textures-on-imported-glb/26257>\
**Category:** Questions\
**Created:** [December 23, 2021, 12:29am UTC](https://forum.babylonjs.com/t/changing-textures-on-imported-glb/26257 "2021-12-23T00:29:53Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Treedbox](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/treedbox/32/20615_2.png) [@Treedbox](https://forum.babylonjs.com/u/Treedbox)\
**Post date:** [December 24, 2021, 2:59pm UTC](https://forum.babylonjs.com/t/changing-textures-on-imported-glb/26257/4 "2021-12-24T14:59:16Z")

</div>

Seems to be the same question answered here:

> [@Add texture/color to all meshes imported as glb file](https://forum.babylonjs.com/t/add-texture-color-to-all-meshes-imported-as-glb-file/17470/6):
>
> So, after load the glb file, we can get meshes and the root mesh const mesh = meshes[0]; Then we can get all childrenMeshes from this mesh and set material or color for each one. A color is applied to each child mesh, except the t-shirt one wich receives a texture. mesh.getChildMeshes().forEach((childMesh, index) =\> { console.log("childMesh.name:", childMesh.name); const material = new BABYLON.StandardMaterial('material', scene); // HVGirl\_prim…

---

_[View the full topic](https://forum.babylonjs.com/t/changing-textures-on-imported-glb/26257)._
