Hi,
I need to listen for clicks on a mesh formed by more elements: I need to know the index of the clicked subobject.
In another project I have used the approach of adding a listener to each subobject, but in this new project I have a lot more subobjects: I’d prefer to use a single MouseEvent listener for the main mesh containing the subobjects, and act when I know the index of the clicked one.
I have tried to put the listener, but the target/currentTarget I receive in the event output is the whole mesh.
Thanks