# Remove a mesh from light.excludedMeshes

**URL:** <https://forum.babylonjs.com/t/remove-a-mesh-from-light-excludedmeshes/62436>\
**Category:** Bugs\
**Tags:** light\
**Created:** [February 13, 2026, 10:50am UTC](https://forum.babylonjs.com/t/remove-a-mesh-from-light-excludedmeshes/62436 "2026-02-13T10:50:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![devAxeon](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/devaxeon/32/524_2.png) [@devAxeon](https://forum.babylonjs.com/u/devAxeon)\
**Post date:** [February 13, 2026, 10:50am UTC](https://forum.babylonjs.com/t/remove-a-mesh-from-light-excludedmeshes/62436/1 "2026-02-13T10:50:28Z")

</div>

Hello !

When removing a mesh from the excludedMeshes array of a light, it doesn’t work, the mesh keeps unlighted  
Can be currently fixed by toggling the light with setEnable false/true

Here a PG:

> **[Babylon.js Playground](https://playground.babylonjs.com/#C4KPMN)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL and WebGPU 3D scenes

---

<div class="post-metadata">

**Author:** ![Tricotou](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/tricotou/32/5844_2.png) [@Tricotou](https://forum.babylonjs.com/u/Tricotou)\
**Post date:** [February 13, 2026, 1:36pm UTC](https://forum.babylonjs.com/t/remove-a-mesh-from-light-excludedmeshes/62436/2 "2026-02-13T13:36:05Z")

</div>

Indeed I think it’s not normal 🤔 Let’s have the official devs see this.

* * *

`NB :` Watch out with the use of `setInterval` in the Playground : it’s not cleared when you edit the code and run (play button) again since it’s pure javascript and not BabylonJS related.

Then you have 2 intervals running in parallel on top of eachother, then 3, 4, etc…  
(Most of the time with no impact since most likely the objects would be disposed, but just for you to know, it can be source of lot of playground bugs)

---

<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 16, 2026, 8:31am UTC](https://forum.babylonjs.com/t/remove-a-mesh-from-light-excludedmeshes/62436/3 "2026-02-16T08:31:40Z")

</div>

Yes, it’s expected, because you recreate the array itself. You should just remove the light:

> **[Babylon.js Playground](https://playground.babylonjs.com/#SABRJ9%231)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL and WebGPU 3D scenes
