Here's what my code looks like:
planets[0]= new THREE.Mesh( geometry, material );
planettexts[0]= new THREE.Mesh( textGeometry, textMaterial );
planets[0].add(planettexts[0]);
Now, I am trying to hide the planettext, but every attempt results in an error.
planets[0].planettexts.visible=false;
Or
planets[0].planettexts[0].visible=false;
I keep getting an undefined error. I have never encountered this issue when modifying an element that was not part of an array before. Also, planettexts is indeed listed as a child of planets[0]. Any suggestions on how to resolve this problem?