# Niagara - sample just portion of static mesh

**URL:** <https://forums.unrealengine.com/t/niagara-sample-just-portion-of-static-mesh/154027>\
**Category:** FX\
**Tags:** unreal-engine\
**Created:** [November 22, 2020, 6:47pm UTC](https://forums.unrealengine.com/t/niagara-sample-just-portion-of-static-mesh/154027 "2020-11-22T18:47:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![eco\_bach2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@eco\_bach2](https://forums.unrealengine.com/u/eco_bach2)\
**Post date:** [November 22, 2020, 6:47pm UTC](https://forums.unrealengine.com/t/niagara-sample-just-portion-of-static-mesh/154027/1 "2020-11-22T18:47:02Z")

</div>

I have a particle dissolve effect working in Niagara.

The issue is that the effect happens to the entire mesh.

I am using a ‘Sample Static Mesh’ module under Particle Spawn.

What I need to have happen is for the effect to transition instead across the mesh.

If you picture a horizontal cylinder I want the cylinder to particle dissolve from left to right.

Is there any way to accomplish this in Niagara?

---

<div class="post-metadata">

**Author:** ![Deathrey](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Deathrey](https://forums.unrealengine.com/u/Deathrey)\
**Post date:** [November 22, 2020, 10:02pm UTC](https://forums.unrealengine.com/t/niagara-sample-just-portion-of-static-mesh/154027/2 "2020-11-22T22:02:18Z")

</div>

> [@eco\_bach2](#):
>
> I have a particle dissolve effect working in Niagara.
> 
> The issue is that the effect happens to the entire mesh.
> 
> I am using a ‘Sample Static Mesh’ module under Particle Spawn.
> 
> What I need to have happen is for the effect to transition instead across the mesh.
> 
> If you picture a horizontal cylinder I want the cylinder to particle dissolve from left to right.
> 
> Is there any way to accomplish this in Niagara?

Of course. In Niagara, you have access to almost all the same functionalities of material editor, and therefore you can fully duplicate material dissolve logic in niagara script, which runs on spawn. Then, it is a matter of checking if random position, that was assigned to particle, is withing valid threshold range from dissolve effect, and if not, kill the particle.

---

<div class="post-metadata">

**Author:** ![eco\_bach2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@eco\_bach2](https://forums.unrealengine.com/u/eco_bach2)\
**Post date:** [November 24, 2020, 10:12pm UTC](https://forums.unrealengine.com/t/niagara-sample-just-portion-of-static-mesh/154027/3 "2020-11-24T22:12:01Z")

</div>

ok thanks!
