When I have three cubes how can stop render one of them?

Hello everyone

here is my PG: https://playground.babylonjs.com/#6XIT28#283

in My PG i have 3 cubes and when the camera start to move the red cube will be invisible, but I want to not to render the red cube when I move the camera instead of just invisible. how can I do it?

You can use box.setEnabled(false)


Thanks a lot :pray:t2: :pray:t2: :pray:t2: :pray:t2: