# Property albedoTexture does not exist on type 'Material'

**URL:** <https://forum.babylonjs.com/t/property-albedotexture-does-not-exist-on-type-material/32691>\
**Category:** Bugs\
**Tags:** gui, material\
**Created:** [August 2, 2022, 5:20am UTC](https://forum.babylonjs.com/t/property-albedotexture-does-not-exist-on-type-material/32691 "2022-08-02T05:20:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![wilfred](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/wilfred/32/29350_2.png) [@wilfred](https://forum.babylonjs.com/u/wilfred)\
**Post date:** [August 2, 2022, 5:20am UTC](https://forum.babylonjs.com/t/property-albedotexture-does-not-exist-on-type-material/32691/1 "2022-08-02T05:20:56Z")

</div>

Hello and thank you for helping

err: Property ‘albedoTexture’ does not exist on type ‘Material’

And this is my code and its typescript : this.ringText.material.albedoTexture = textureGround;

can you guys please figure it out as soon as possible plz

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/d/c/dc97fb0649c329bf34d65837abfb6567991f9493.png)

I have did all the possible things i can do

---

<div class="post-metadata">

**Author:** ![Blake](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/blake/32/21509_2.png) [@Blake](https://forum.babylonjs.com/u/Blake)\
**Post date:** [August 2, 2022, 5:55am UTC](https://forum.babylonjs.com/t/property-albedotexture-does-not-exist-on-type-material/32691/2 "2022-08-02T05:55:59Z")

</div>

Hey there. 🙂 If you know that the material is of type PBRMaterial then you can cast it to that like below for example. It’s not a bug thou, just one of the joys of using TypeScript. 😀

```auto
(this.ringText.material as PBRMaterial).albedoTexture = textureGround;

```

---

<div class="post-metadata">

**Author:** ![Blake](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/blake/32/21509_2.png) [@Blake](https://forum.babylonjs.com/u/Blake)\
**Post date:** [August 2, 2022, 6:41am UTC](https://forum.babylonjs.com/t/property-albedotexture-does-not-exist-on-type-material/32691/7 "2022-08-02T06:41:24Z")

</div>

Hmm if you can narrow it down to a more specific question/issue and ideally make a small TypeScript [playground](https://playground.babylonjs.com/#GTUAB5) for it then I’m happy to try to help, but otherwise I’m not sure how to. 🙂

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [August 2, 2022, 2:37pm UTC](https://forum.babylonjs.com/t/property-albedotexture-does-not-exist-on-type-material/32691/10 "2022-08-02T14:37:21Z")

</div>

we would need your code in a proper playground running code: [Playground | Babylon.js Documentation](https://doc.babylonjs.com/toolsAndResources/tools/playground)
