Why can't I add an InstancedMesh to HighlightLayer

compiled a PG close to my reality: a universal loader of simple models loads a model, writes the base to the “Models” object and creates instances based on the basics. I could use highlighting for Models.neutralBase or Models.redBase (base), for example “hl.addMesh (Models.neutralBase, BABYLON.Color3.Green ());”, but then all instances of this base will be highlighted, but I need specifically selected.
To understand what exactly is required, you need to comment out lines 197 and 207 (enabling and disabling “hl”)
I apologize, if it is not very clear written, I have to use a translator :slight_smile:

1 Like