I am trying to click on model items to display information about every single part in my assembly. When I try my code on the Preview window it works fine. However, when I publish the experience on my halolens 2 (Microsoft), the click seems to not work.
sometimes there are difference in a code behavior between preview mode and End device here HoloLens - especially when some OS or chrome specific api's is used. Unfortunately, without a code example is difficult to find the reason what could be the root cause.
You mentioned – “info about all components on click” – therefore I believe you want to use some techniques as described in the Post Incorporate CAD Metadata Into an Experience ( version 8.5.13 and later)) right ? I think the provided examples are provide only mobile projects but I could test if this will work also on HoloLens 2.0 and will give a later a feedback.
As metioned I tested the project from the post) - I simple converted it to HoloLens project and tested it on the HoloLens 2.0 device with the current version of OS and Vuforia View - and it was working so far.