Access to Inspector -> Properties -> Debug "render wireframe over mesh"

Inspector -> Properties -> Debug “render wireframe over mesh” seems quite powerful and handy, is it accessible programmatically? It doesn’t look like it has API documentation.

Thanks

Hi. It is here


and seems to be a simple clone of mesh.Cheers

1 Like

Thanks MarianG, I’ll copy the source code technique then. It gives a lot of control over all the elements too.

Out of curiosity, I wonder if renderWireframeOver could be called programmatically?

Great!
Oh, I didn’t understand very well what do you mean by ‘called programmatically’. Can you please explain a little bit? Do you want to call it outside of inspector?

Yes, I want to call it outside the inspector.

For example:

mesh1.renderWireframeOver();

Mmm, I’m afraid we cann’t use it like that, but let ask @sebavan, only to be sure :slight_smile:
Btw, you can create your custom function for this.
https://playground.babylonjs.com/#3KA0L4

1 Like

As @MarianG said the full implementation is part of the inspector, so you can not call it directly.

That said let s see with @Deltakosh if we should should move it to core ?

I am really wondering cause the code snippet is pretty short and it is a bit edge case for core.

2 Likes

Yeah code is short enough to be consider an easy to reproduce snippet :wink:

And this way we do not bloat the framework too much

2 Likes

Yes that all makes sense to me.

Thanks everyone for your responses, time and code. :grinning: