How to get all clones of a mesh?

Hey guys what’s the easiest way to track all the clones of a mesh? I see that you can use mesh.source to get where it came from, but what’s the opposite of that?

By default (you can disable this), a mesh is keeping the list of its clones in an internal structure, but it is not publicly available:

https://playground.babylonjs.com/#2YHP8J

Maybe a getter could be added for this: @Deltakosh what do you think?

I see no problem to add that getter

yes please!!

PR on its way:

2 Likes

thanks a bunch :slight_smile:

hey just wondering, I’m using CDN stable version. Do I have to update anything to use it now? I’m getting undefined result.

yep you need to reference it from preview.babylonjs.com