When you unparent the cube from the sphere, it will no longer exist in the scene graph, so it won't be rendered. I would recommend creating a group node that serves as the parent of the cube and sphere. This way you can toggle the visibility of the cube and sphere independently.
|