# AdvancedDynamicTexture in NullEngine

**URL:** <https://forum.babylonjs.com/t/advanceddynamictexture-in-nullengine/18414>\
**Category:** Questions\
**Created:** [February 13, 2021, 6:05pm UTC](https://forum.babylonjs.com/t/advanceddynamictexture-in-nullengine/18414 "2021-02-13T18:05:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Foxhoundn](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/foxhoundn/32/15613_2.png) [@Foxhoundn](https://forum.babylonjs.com/u/Foxhoundn)\
**Post date:** [February 13, 2021, 6:05pm UTC](https://forum.babylonjs.com/t/advanceddynamictexture-in-nullengine/18414/1 "2021-02-13T18:05:40Z")

</div>

Hey!

it seems that the NullEngine is trying to render AdvancedDynamicTextures - is this correct behaviour and should I work around this when running tests or should we do a PR when AdvancedDynamicTextures are ignored in NullEngine?

```auto
 console.error
      TypeError: Cannot set property 'font' of null
          at AdvancedDynamicTexture._render (.../@babylonjs/gui/2D/advancedDynamicTexture.js:626:21)
          at AdvancedDynamicTexture._checkUpdate (.../@babylonjs/gui/2D/advancedDynamicTexture.js:618:14)
          at Observer.callback (.../@babylonjs/gui/2D/advancedDynamicTexture.js:127:107)
          at Observable.notifyObservers (.../@babylonjs/core/Misc/observable.js:286:49)

```

Thanks

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [February 14, 2021, 2:15pm UTC](https://forum.babylonjs.com/t/advanceddynamictexture-in-nullengine/18414/2 "2021-02-14T14:15:22Z")

</div>

I think it’s expected behaviour for the null engine but I will let @Deltakosh or @sebavan say for sure.

---

<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:** [February 15, 2021, 4:18pm UTC](https://forum.babylonjs.com/t/advanceddynamictexture-in-nullengine/18414/3 "2021-02-15T16:18:46Z")

</div>

I am totally not sure that ADT is null engine “friendly” as it works of a context 2d which is not available as well in node.

---

<div class="post-metadata">

**Author:** ![Foxhoundn](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/foxhoundn/32/15613_2.png) [@Foxhoundn](https://forum.babylonjs.com/u/Foxhoundn)\
**Post date:** [March 6, 2021, 5:46pm UTC](https://forum.babylonjs.com/t/advanceddynamictexture-in-nullengine/18414/4 "2021-03-06T17:46:36Z")

</div>

Okay so I should take care of this manually and check if the env is test.

Would it be a good idea to have BB take care of this automatically when using NullEngine thou? To me it seems logical that the ADT would be completely ignored.

---

<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:** [March 8, 2021, 11:03am UTC](https://forum.babylonjs.com/t/advanceddynamictexture-in-nullengine/18414/5 "2021-03-08T11:03:28Z")

</div>

This makes sense lets check with @Deltakosh what are his thoughts ?

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [March 8, 2021, 4:17pm UTC](https://forum.babylonjs.com/t/advanceddynamictexture-in-nullengine/18414/6 "2021-03-08T16:17:32Z")

</div>

I tend to agree but I would not want to bloat ADT code with a lot of not required tests

Do you think you could try to submit a PR with suggested changes?
