Hi, I imported a glb file and need to access one of its childs to assign a trigger. It works fine for the first object (let’s call it sphereH).
var assignATrigger = scene.getMeshByName("sphereH");
When I load another file and also need to access the child of that, which happens to have the same name is not activating the trigger. I think scene is giving me back first sphereH, or in any case it doesn’t work like that.
Is there something like scene.objectA.getMeshByName(“sphereH”); ?