# Making foliage disable the shadow on the mesh but the shadow visible on the ground

**URL:** <https://forums.unrealengine.com/t/making-foliage-disable-the-shadow-on-the-mesh-but-the-shadow-visible-on-the-ground/2517630>\
**Category:** World Creation\
**Tags:** unreal-engine, question\
**Created:** [May 19, 2025, 7:45am UTC](https://forums.unrealengine.com/t/making-foliage-disable-the-shadow-on-the-mesh-but-the-shadow-visible-on-the-ground/2517630 "2025-05-19T07:45:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![user\_714e5c8205c94e3c41e6cb9d008a03bfbabdb9a1db1cedb623e85f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@user\_714e5c8205c94e3c41e6cb9d008a03bfbabdb9a1db1cedb623e85f](https://forums.unrealengine.com/u/user_714e5c8205c94e3c41e6cb9d008a03bfbabdb9a1db1cedb623e85f)\
**Post date:** [May 19, 2025, 7:45am UTC](https://forums.unrealengine.com/t/making-foliage-disable-the-shadow-on-the-mesh-but-the-shadow-visible-on-the-ground/2517630/1 "2025-05-19T07:45:22Z")

</div>

so i want to make my foliage got no shadow on the mesh but the shadow visible on the ground, can someone help me please? 🙏

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/b/d/ebd5b50f119f7fb64bdb7c68e1aeca3a4b97b653.jpeg)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/1/6/c1615399b463f65accb4be9ce72e1d0ec461aa2f.jpeg)

---

<div class="post-metadata">

**Author:** ![sarahlenker](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sarahlenker/32/994419_2.png) [@sarahlenker](https://forums.unrealengine.com/u/sarahlenker)\
**Post date:** [May 19, 2025, 10:35pm UTC](https://forums.unrealengine.com/t/making-foliage-disable-the-shadow-on-the-mesh-but-the-shadow-visible-on-the-ground/2517630/2 "2025-05-19T22:35:57Z")

</div>

Hi there,

The term you’re looking for is self-shadowing, and unfortunately no, Unreal does not have any way to directly disable this, due to the shadows being generated through shadow maps and a depth buffer.

However, a helpful worker at Epic does offer a workaround in [this post](https://forums.unrealengine.com/t/is-there-any-way-to-disable-self-shadowing/346838), where you add just a little bit of emissive to your leaf material to help lighten the shadowed areas.

Best of luck with this!

---

<div class="post-metadata">

**Author:** ![brahmaforge](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/brahmaforge/32/1063293_2.png) [@brahmaforge](https://forums.unrealengine.com/u/brahmaforge)\
**Post date:** [May 19, 2025, 10:59pm UTC](https://forums.unrealengine.com/t/making-foliage-disable-the-shadow-on-the-mesh-but-the-shadow-visible-on-the-ground/2517630/3 "2025-05-19T22:59:21Z")

</div>

\*\*Hey @elwetritsche97 —

### ✅ What’s Likely Happening

The crash you’re hitting:

```auto
LongPackageNameToFilename failed to convert...
Path does not map to any roots.

```

…is usually caused by **UE trying to resolve a save path based on cached or misconfigured project root directories** — especially on Linux where symlinks or environment variables may interfere.

* * *

### 🔍 Here’s What to Check

1. **Default Save Directory Might Be Cached**  
UE sometimes remembers the last “Save As” path _across sessions_ via editor config files. If that directory no longer exists (`/home/username/A` in your case), it crashes.

- Go to:  
`~/UnrealEngine/Engine/Saved/Config/Linux/EditorPerProjectUserSettings.ini`  
and look for lines like:

```auto
[Directories]
LastBrowsePath=/home/username/A/...

```

→ Replace or delete anything that points to the non-existent path.

* * *

1. **Your Project Root May Be Misconfigured**

- Check `DefaultGame.ini`, `Engine.ini`, or `Game.ini` in your `Config` directory.
- Look for any custom mount points or redirect paths that might still reference the `/home/username/A` structure.

* * *

1. **Content Directory Symlinks or Mounts**  
If your `/home/username/B/...` path is mounted or symlinked, Unreal’s `PackageNameToFilename()` may fail to resolve it.

Make sure UE sees `/home/username/B/...` as part of a valid **project content root**. Sometimes it’s safest to use absolute, native paths with no symlinks for Content folders on Linux.

* * *

### 💡 Bonus Tip

When building large or modular projects — especially in custom Linux environments — it’s easy to lose track of which assets or maps need what fixes, config changes, or versioning.

I recently started tracking per-asset notes (like “check pathing issue on Linux” or “map save failed due to root mismatch”) _directly inside the editor_, synced to a lightweight web dashboard.

If you’re juggling lots of maps or a cross-platform setup, you might find this helpful too:  
🔗 [Asset Optics on Fab](https://fab.com/s/0fb71c36933e)
