# How can I set "self shadow only" in blueprint?

**URL:** <https://forums.unrealengine.com/t/how-can-i-set-self-shadow-only-in-blueprint/490280>\
**Category:** Blueprint\
**Tags:** toggle, unreal-engine, question, Blueprint\
**Created:** [October 26, 2021, 4:24pm UTC](https://forums.unrealengine.com/t/how-can-i-set-self-shadow-only-in-blueprint/490280 "2021-10-26T16:24:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kligan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kligan/32/248910_2.png) [@Kligan](https://forums.unrealengine.com/u/Kligan)\
**Post date:** [October 26, 2021, 4:24pm UTC](https://forums.unrealengine.com/t/how-can-i-set-self-shadow-only-in-blueprint/490280/1 "2021-10-26T16:24:41Z")

</div>

I want to be able to toggle “self shadow only” on and off for a mesh in a blueprint. But I can’t figure out how! There’s no correct nodes for that. I only found “get self shadow only” node.

 ![351069-selfshadow.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/4/e/04ee2d0f283b6607b96491c4825e5c55cef090e4.jpeg)

I know that I can toggle “cast shadows”, but this results in mesh not receiving static shadows from walls and such, so its being illuminated by direct light regardless if its in shadow or not:

 ![351070-shadow3.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/a/2/9a256a1e850c9cb379cc98cfa32d4e4e817435c4.jpeg)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [October 26, 2021, 7:35pm UTC](https://forums.unrealengine.com/t/how-can-i-set-self-shadow-only-in-blueprint/490280/2 "2021-10-26T19:35:26Z")

</div>

I’m pretty sure you can’t do that in blueprint. But what you can do, is have 2 candle meshes in the blueprint, one is self shadow, the other not, and just toggle visibility between them:

 ![351088-screenshot-1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/2/d/72df19704ad5f7c05d0a800ba6775304eab41796.jpeg)

---

<div class="post-metadata">

**Author:** ![Kligan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kligan/32/248910_2.png) [@Kligan](https://forums.unrealengine.com/u/Kligan)\
**Post date:** [October 26, 2021, 7:40pm UTC](https://forums.unrealengine.com/t/how-can-i-set-self-shadow-only-in-blueprint/490280/3 "2021-10-26T19:40:22Z")

</div>

Yeah, I thought about it.

But isn’t it weird how many things you can set for lighting on the mesh, but there’s no “set self shadow only”? I Thought maybe I’m just dumb and there’s some way to do it.

The problem with what you’re suggesting is that I wanted to do a construction script that allows to chose between several candle meshes for variety. So toggling visibility for many meshes like that would be very clunky.  
But I guess I’ll just make a separate blueprint for them then.

Thanks for advice nonetheless! 🙂

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [October 26, 2021, 7:45pm UTC](https://forums.unrealengine.com/t/how-can-i-set-self-shadow-only-in-blueprint/490280/4 "2021-10-26T19:45:27Z")

</div>

Yeah… I guess you just put them all in an array, and if you choose an odd index, the script knows to enable SS 🙂

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [October 26, 2021, 8:14pm UTC](https://forums.unrealengine.com/t/how-can-i-set-self-shadow-only-in-blueprint/490280/5 "2021-10-26T20:14:40Z")

</div>

Something like this monstrosity:

 ![351105-screenshot-2.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/5/4/85465ba3ba951693c231d9e58f148ef582ecfd6c.jpeg)

From the front end, all you have to do is pick a mesh, and switch the bool.
