# Detaching Advanced Dynamic Texture

**URL:** <https://forum.babylonjs.com/t/detaching-advanced-dynamic-texture/12884>\
**Category:** Questions\
**Created:** [July 27, 2020, 1:50pm UTC](https://forum.babylonjs.com/t/detaching-advanced-dynamic-texture/12884 "2020-07-27T13:50:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![enquel](https://avatars.discourse-cdn.com/v4/letter/e/ed655f/32.png) [@enquel](https://forum.babylonjs.com/u/enquel)\
**Post date:** [July 27, 2020, 1:50pm UTC](https://forum.babylonjs.com/t/detaching-advanced-dynamic-texture/12884/1 "2020-07-27T13:50:03Z")

</div>

Hi,

I have this situation: I need a mesh to change textures between regular texture and Advanced Dynamic Texture, back and forth. It all works well until the moment I create the Advanced Dynamic Texture. Then it also overlays the other textures. Is that possible to cycle between the 2 types on 1 mesh & material? Do I need to somehow dispose/update/detach Advanced Dynamic Texture? @MackeyK24 @Deltakosh I am pinging you, thank you in advance.

Best regards

---

<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:** [July 27, 2020, 2:16pm UTC](https://forum.babylonjs.com/t/detaching-advanced-dynamic-texture/12884/2 "2020-07-27T14:16:29Z")

</div>

This is really strange, I would expect the swap to work seamlessly. Could you share a small repro in the Playground ?

---

<div class="post-metadata">

**Author:** ![enquel](https://avatars.discourse-cdn.com/v4/letter/e/ed655f/32.png) [@enquel](https://forum.babylonjs.com/u/enquel)\
**Post date:** [July 27, 2020, 2:35pm UTC](https://forum.babylonjs.com/t/detaching-advanced-dynamic-texture/12884/3 "2020-07-27T14:35:41Z")

</div>

@sebavan sorry for trouble, I fixed this. It was an error on my side. I have found a nice doc on text writing using Dynamic Texture and this helped.
