To delete/remove/dispose one object by name

I want to dispose or just disable “bloom”.
Can pls somebody show me how to do that.
If I use dispose, all the other instances also are disposed.

Cheers. Werner

There was the syntax error in your PG. Should be:

scene.getMeshByName("bloom").isVisible = false;

You cannot dispose it since it will dispose all its instances as well, but you can make it invisible - https://playground.babylonjs.com/#5ILMF5#27

2 Likes

O thank you so much.

1 Like