three.js: Visibility do not apply to child objects

while using three inspector i noticed if

parent = new THREE.Object3D();
parent.add(mesh1);
parent.add(mesh2);
parent.visible = false;

mesh1 and mesh 2 are still visible. is this intended or bug?

About this issue

  • Original URL
  • State: closed
  • Created 12 years ago
  • Comments: 20 (17 by maintainers)

Most upvoted comments

Hi everyone, not sure if this has already been clarified, but Im trying to set up an enclosed room with some soft lighting. I wanted to use area lights to achieve this but the light source is visible. Is there a way to keep the light emitting but hide the visibility of the light source itself? Any help would be greatly appreciated!

@jesseazueta please, don’t post in old conversations with unrelated questions.