# Offscreen canvas and debugLayer

**URL:** <https://forum.babylonjs.com/t/offscreen-canvas-and-debuglayer/55009>\
**Category:** Questions\
**Created:** [November 26, 2024, 4:39pm UTC](https://forum.babylonjs.com/t/offscreen-canvas-and-debuglayer/55009 "2024-11-26T16:39:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![plopidou](https://avatars.discourse-cdn.com/v4/letter/p/82dd89/32.png) [@plopidou](https://forum.babylonjs.com/u/plopidou)\
**Post date:** [November 26, 2024, 4:39pm UTC](https://forum.babylonjs.com/t/offscreen-canvas-and-debuglayer/55009/1 "2024-11-26T16:39:23Z")

</div>

See title 🙂  
Is it doable?

thank you 🙂

---

<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:** [November 26, 2024, 5:09pm UTC](https://forum.babylonjs.com/t/offscreen-canvas-and-debuglayer/55009/2 "2024-11-26T17:09:59Z")

</div>

Unfortunately no as debug layer is html

---

<div class="post-metadata">

**Author:** ![plopidou](https://avatars.discourse-cdn.com/v4/letter/p/82dd89/32.png) [@plopidou](https://forum.babylonjs.com/u/plopidou)\
**Post date:** [November 26, 2024, 5:30pm UTC](https://forum.babylonjs.com/t/offscreen-canvas-and-debuglayer/55009/3 "2024-11-26T17:30:52Z")

</div>

yes thank you that makes sense.  
Is there a particular api to “talk” to the debug layer?

---

<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:** [November 26, 2024, 6:41pm UTC](https://forum.babylonjs.com/t/offscreen-canvas-and-debuglayer/55009/4 "2024-11-26T18:41:50Z")

</div>

The debug layer is a react component. All the source code is here:  
[Babylon.js/packages/dev/inspector at 3725abaed67d26b5a8de053f3aa336deae4373b1 · BabylonJS/Babylon.js](https://github.com/BabylonJS/Babylon.js/tree/3725abaed67d26b5a8de053f3aa336deae4373b1/packages/dev/inspector)

---

<div class="post-metadata">

**Author:** ![plopidou](https://avatars.discourse-cdn.com/v4/letter/p/82dd89/32.png) [@plopidou](https://forum.babylonjs.com/u/plopidou)\
**Post date:** [November 26, 2024, 7:12pm UTC](https://forum.babylonjs.com/t/offscreen-canvas-and-debuglayer/55009/5 "2024-11-26T19:12:58Z")

</div>

thank you very much!
