# Niagara Liquid simulation - mesh distance field compile error

**URL:** <https://forums.unrealengine.com/t/niagara-liquid-simulation-mesh-distance-field-compile-error/595838>\
**Category:** Feedback & Requests\
**Tags:** error, particle-systems, unreal-engine, UE5-0, fluid, question\
**Created:** [July 3, 2022, 1:43am UTC](https://forums.unrealengine.com/t/niagara-liquid-simulation-mesh-distance-field-compile-error/595838 "2022-07-03T01:43:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ManulaAtapattu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ManulaAtapattu](https://forums.unrealengine.com/u/ManulaAtapattu)\
**Post date:** [July 3, 2022, 1:43am UTC](https://forums.unrealengine.com/t/niagara-liquid-simulation-mesh-distance-field-compile-error/595838/1 "2022-07-03T01:43:40Z")

</div>

I enabled the Niagara fluid plugin and create Niagara systems using the Grid\_3D\_Flip\_Hose and Grid\_3D\_Flip\_Pool. When I drag the Niagara system into the editor it works fine in the viewport. But when I open the Niagara editor, the compile errors show up and it no longer works in the editor.  
 ![Screenshot (208)](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/8/1/481c5bafd81d7492f96a722ac79a137fe0995b5c.png)

The issue is said to be the mesh distance fields, but it is enabled in the project settings.

 ![Screenshot (210)](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/5/0/550f8359df1f2a62523e10db82a8bd0cba8bbbe3.jpeg)  
 ![Screenshot (209)_LI](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/0/d/a0d292b67cde1a3eee25b9c1302e325ea1d1a8b8.jpeg)

Tried restarting the editor also. I have a NVidia GeForce GTX 1660.  
I tested this with the The Grid\_3D\_Flip\_Splash and a few gas simulations, and it worked fine.

---

<div class="post-metadata">

**Author:** ![funkyzeit987](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@funkyzeit987](https://forums.unrealengine.com/u/funkyzeit987)\
**Post date:** [July 7, 2022, 12:53pm UTC](https://forums.unrealengine.com/t/niagara-liquid-simulation-mesh-distance-field-compile-error/595838/2 "2022-07-07T12:53:04Z")

</div>

Same issue here, distance field enabled but I still get this compiler error. Have you found a way to fix it?

---

<div class="post-metadata">

**Author:** ![ManulaAtapattu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ManulaAtapattu](https://forums.unrealengine.com/u/ManulaAtapattu)\
**Post date:** [July 7, 2022, 2:25pm UTC](https://forums.unrealengine.com/t/niagara-liquid-simulation-mesh-distance-field-compile-error/595838/4 "2022-07-07T14:25:55Z")

</div>

Not yet. I stopped trying to find an answer to this. I started using the fluid flux system for now.

---

<div class="post-metadata">

**Author:** ![ManulaAtapattu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ManulaAtapattu](https://forums.unrealengine.com/u/ManulaAtapattu)\
**Post date:** [August 16, 2022, 6:22am UTC](https://forums.unrealengine.com/t/niagara-liquid-simulation-mesh-distance-field-compile-error/595838/5 "2022-08-16T06:22:35Z")

</div>

I think I found the solution. Instead of doing the normal compile in the Niagara particle, use the full rebuild. “Full rebuild” appears when you press the 3 dots next to the compile button. It worked for me for now.

---

<div class="post-metadata">

**Author:** ![jklappenbach](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jklappenbach](https://forums.unrealengine.com/u/jklappenbach)\
**Post date:** [May 19, 2023, 1:09am UTC](https://forums.unrealengine.com/t/niagara-liquid-simulation-mesh-distance-field-compile-error/595838/6 "2023-05-19T01:09:12Z")

</div>

OH. MY FRICKIN’ GODDESS. Thank you. I feel sorry for the one who forked out $400.00 for the lack of this knowledge. Complexity, I know, but this smacks of a usability issue that could use some love.
