# Bug with water and landscape when build/package game! (UE5 bug)

**URL:** <https://forums.unrealengine.com/t/bug-with-water-and-landscape-when-build-package-game-ue5-bug/1713346>\
**Category:** World Creation\
**Tags:** unreal-engine, question\
**Created:** [February 26, 2024, 8:02am UTC](https://forums.unrealengine.com/t/bug-with-water-and-landscape-when-build-package-game-ue5-bug/1713346 "2024-02-26T08:02:52Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Manking-1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Manking-1](https://forums.unrealengine.com/u/Manking-1)\
**Post date:** [February 26, 2024, 8:02am UTC](https://forums.unrealengine.com/t/bug-with-water-and-landscape-when-build-package-game-ue5-bug/1713346/1 "2024-02-26T08:02:52Z")

</div>

Hi!  
Terrible problem with the water plug-in! Everything is correct in the editor, but when building the game (dev and shipping), artifacts with water are observed there!  
What is the problem here and can it be fixed?  
I need to prepare the game for release, and here it’s such a horror.

Unreal 5.3.2.  
I checked the Win 10 and mac 14.1.1 package.

 ![BAD WATER](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/0/3/f0331f5a9ba09a03fbb2ad5dcc9394b33a216697.jpeg)

---

<div class="post-metadata">

**Author:** ![Bjornarr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bjornarr](https://forums.unrealengine.com/u/Bjornarr)\
**Post date:** [October 16, 2024, 7:18am UTC](https://forums.unrealengine.com/t/bug-with-water-and-landscape-when-build-package-game-ue5-bug/1713346/2 "2024-10-16T07:18:54Z")

</div>

Hi, did you found the solution?

---

<div class="post-metadata">

**Author:** ![Manking-1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Manking-1](https://forums.unrealengine.com/u/Manking-1)\
**Post date:** [November 18, 2024, 11:57am UTC](https://forums.unrealengine.com/t/bug-with-water-and-landscape-when-build-package-game-ue5-bug/1713346/3 "2024-11-18T11:57:32Z")

</div>

No, as I understand it, unreal has frozen the development of the Water plugin. Bug fixes related to the distortion of meshes on top of water or navigation under water have not been fixed since the release of version 5.1.

---

<div class="post-metadata">

**Author:** ![hamaro02](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hamaro02](https://forums.unrealengine.com/u/hamaro02)\
**Post date:** [February 25, 2025, 9:04pm UTC](https://forums.unrealengine.com/t/bug-with-water-and-landscape-when-build-package-game-ue5-bug/1713346/4 "2025-02-25T21:04:29Z")

</div>

Hi. I’m on 5.4.4 Source.  
I had planes disappearing close to vertical edges around my single water plugin ocean BP.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/a/6/9a6b8029493d481f78136880f1a3003db99276c8.jpeg)

What I found today to fix it for me was to edit “Water Opacity Mask offset” from -24 to -1000 (didnt care to check other values) in  
/Script/Engine.MaterialFunction’/Water/Materials/Functions/WaterOpacityMaskFromDepth.WaterOpacityMaskFromDepth’

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/2/f/b2f1ea135bc2613033f1d0ae095739d72c5fabe1.jpeg)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/9/e/29ebb5046639172697013aa9cb5624a91811497a.jpeg)

---

<div class="post-metadata">

**Author:** ![Buckley603](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Buckley603](https://forums.unrealengine.com/u/Buckley603)\
**Post date:** [March 26, 2025, 5:09am UTC](https://forums.unrealengine.com/t/bug-with-water-and-landscape-when-build-package-game-ue5-bug/1713346/5 "2025-03-26T05:09:12Z")

</div>

This worked for me in 5.4! Thanks!!!

---

<div class="post-metadata">

**Author:** ![Kher.exe](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kher.exe/32/778868_2.png) [@Kher.exe](https://forums.unrealengine.com/u/Kher.exe)\
**Post date:** [May 28, 2025, 3:22pm UTC](https://forums.unrealengine.com/t/bug-with-water-and-landscape-when-build-package-game-ue5-bug/1713346/6 "2025-05-28T15:22:16Z")

</div>

This did the trick for us in 5.4 too. Thank you so much!

---

<div class="post-metadata">

**Author:** ![Apollo119900](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Apollo119900](https://forums.unrealengine.com/u/Apollo119900)\
**Post date:** [December 2, 2025, 2:56pm UTC](https://forums.unrealengine.com/t/bug-with-water-and-landscape-when-build-package-game-ue5-bug/1713346/7 "2025-12-02T14:56:14Z")

</div>

Same problem on 5.5.4, did you manage to find a solution? Editing opacity didn’t fix it for me.

---

<div class="post-metadata">

**Author:** ![reeepin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@reeepin](https://forums.unrealengine.com/u/reeepin)\
**Post date:** [April 16, 2026, 9:19pm UTC](https://forums.unrealengine.com/t/bug-with-water-and-landscape-when-build-package-game-ue5-bug/1713346/8 "2026-04-16T21:19:03Z")

</div>

Same on 5.7.4, has anyone found a solution? opacity didn’t help me either

---

<div class="post-metadata">

**Author:** ![Quiphainyr1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Quiphainyr1](https://forums.unrealengine.com/u/Quiphainyr1)\
**Post date:** [April 25, 2026, 1:09pm UTC](https://forums.unrealengine.com/t/bug-with-water-and-landscape-when-build-package-game-ue5-bug/1713346/9 "2026-04-25T13:09:39Z")

</div>

I’m currently in 5.7.1 and changing the Opacity Mask Offset still works, but changing it on the specific HLOD material or Water\_Material\_Ocean doesn’t seem to work. You have to actually change it in the WaterOpacityMaskFromDepth Material Function, which can be found in the Content Browser under ‘Engine → Plugins → Water Content → Materials → Functions’. When you open that Material Function, scroll all the way to the left to find the ‘Water Opacity Mask Offset’ underneath the ‘WaterBodyData’ node. I even changed this to -5000 and I don’t see any artifacts anymore after packiging (development). Thanks @hamaro02 for the tip!
