# Is it possible to invisible each particle in PCS?

**URL:** <https://forum.babylonjs.com/t/is-it-possible-to-invisible-each-particle-in-pcs/17148>\
**Category:** Questions\
**Tags:** material\
**Created:** [January 4, 2021, 2:41pm UTC](https://forum.babylonjs.com/t/is-it-possible-to-invisible-each-particle-in-pcs/17148 "2021-01-04T14:41:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arash\_Bagheri](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@Arash\_Bagheri](https://forum.babylonjs.com/u/Arash_Bagheri)\
**Post date:** [January 4, 2021, 2:41pm UTC](https://forum.babylonjs.com/t/is-it-possible-to-invisible-each-particle-in-pcs/17148/1 "2021-01-04T14:41:17Z")

</div>

Hello everyone

is it possible to invisible each particle in PCS? I didn’t find anything in the documentation.

I use the following code for do it:

```
var pcs= new BABYLON.PointsCloudSystem("pcs", 1, scene) 
pcs.addPoints(10000);
pcs.buildMeshAsync();
pcs.particles.forEach((particle) => {
    particle.isVisible = false;
});

```

> **[Babylon.js Playground](https://playground.babylonjs.com/#UI95UC%23484)**

---

<div class="post-metadata">

**Author:** ![msDestiny14](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/msdestiny14/32/9572_2.png) [@msDestiny14](https://forum.babylonjs.com/u/msDestiny14)\
**Post date:** [January 4, 2021, 3:50pm UTC](https://forum.babylonjs.com/t/is-it-possible-to-invisible-each-particle-in-pcs/17148/2 "2021-01-04T15:50:11Z")

</div>

One way I able to do this was setting the entire mesh visibility to 0.

```
engine.runRenderLoop(() => {
    pcs.mesh.visibility = 0;
});

```

I think there is a better way to set the individual particle (for example if you wanted different particles to be different alphas) Perhaps this line in the documentation helps?

- Changes to particle properties can be achieved with the `initParticles()` or `updateParticle(particle)` methods and a call to `setParticles` .

---

<div class="post-metadata">

**Author:** ![Arash\_Bagheri](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@Arash\_Bagheri](https://forum.babylonjs.com/u/Arash_Bagheri)\
**Post date:** [January 4, 2021, 4:10pm UTC](https://forum.babylonjs.com/t/is-it-possible-to-invisible-each-particle-in-pcs/17148/3 "2021-01-04T16:10:41Z")

</div>

Thanks a lot 🙏, I am going to try it.  
I cannot use `engine.runRenderLoop(() => { pcs.mesh.visibility = 0; });` because I want to use a check box to show and hide the model

---

<div class="post-metadata">

**Author:** ![Arash\_Bagheri](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@Arash\_Bagheri](https://forum.babylonjs.com/u/Arash_Bagheri)\
**Post date:** [January 4, 2021, 4:26pm UTC](https://forum.babylonjs.com/t/is-it-possible-to-invisible-each-particle-in-pcs/17148/4 "2021-01-04T16:26:58Z")

</div>

I have solve it, with dispose and then rebuild it again.  
Thank you so much for your helping.

---

<div class="post-metadata">

**Author:** ![msDestiny14](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/msdestiny14/32/9572_2.png) [@msDestiny14](https://forum.babylonjs.com/u/msDestiny14)\
**Post date:** [January 4, 2021, 4:28pm UTC](https://forum.babylonjs.com/t/is-it-possible-to-invisible-each-particle-in-pcs/17148/5 "2021-01-04T16:28:36Z")

</div>

Awesome! Glad I could be of help. 😃
