Highlight layer on mesh instances

Hello!
When creating a mesh instance, adding it to the highlight layer through .addMesh seems to give a weird error. Is this a bug or is it a side-effect of mesh instances?

Repro

Changing line 12 to
var sphereAlpha = sphere.clone("sphereAlpha");
makes it runnable

1 Like

The highlight layer does not support instances. You should clone instead in this case unfortunately.

3 Likes

Alright! Thanks for the quick response!