Highlight instanceMesh

When highlighting objects, Mesh A can be highlighted, B = A.createInstance(), B cannot be highlighted, is there a solution?
PG: https://playground.babylonjs.com/#D6GB23#8
line 143 report error

Your PG does not work for me:
image

But these post should help you:

look this!

//141 line

show 143 line

The PG does work for me now.

See the links I pasted above, the problem is that you can’t highlight mesh instances. The links I provided give some ways to overcome this problem.

1 Like

Acturally there is a very hack way to do this. You can modify the object before draw stencil buffer and change it back after the draw.