Highlight Layer problem

Hello everyone

I use HighlightLayer and it works well, but under certain circumstances i need to remove highlight for all meshes. I found removeAllMeshes() in HighlightLayer documentation but that isn`t defined! In some demos i also found that people used this method, but written lowercase - removeallmeshes(). That method exists, but when i try it it shows me that my instance of HighlightLayer dont exist. Heres the demo with same behavior like in my case: https://www.babylonjs-playground.com/#1KUJ0A#309
Thanks in advance :smiley:

Welcome aboard!

Your problem is that the variable is named hl and not h1:

https://www.babylonjs-playground.com/#1KUJ0A#310

The method is really removeAllMeshes and not removeallmeshes.

Thanks, but bad variable name weren`t the only problem, i also need to update Babylon, now works well :smiley: