# How to change shadow quality.

**URL:** <https://forums.unrealengine.com/t/how-to-change-shadow-quality/438811>\
**Category:** Rendering\
**Tags:** Shadows, no-shadows, unreal-engine, UE4, Blueprint, question\
**Created:** [December 4, 2018, 2:13am UTC](https://forums.unrealengine.com/t/how-to-change-shadow-quality/438811 "2018-12-04T02:13:43Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![OG\_FATFACE\_420](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@OG\_FATFACE\_420](https://forums.unrealengine.com/u/OG_FATFACE_420)\
**Post date:** [December 4, 2018, 2:13am UTC](https://forums.unrealengine.com/t/how-to-change-shadow-quality/438811/1 "2018-12-04T02:13:43Z")

</div>

So in my game. I have a three buttons that will toggle the different setting of shadow quality. The buttons are in a user interface widget. I want the last button to be the low quality shadow (no shadows) and the first button to be the max quality shadows. Is there any way to do this and if so, can anyone send an example blueprint. Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Tuerer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuerer/32/1008648_2.png) [@Tuerer](https://forums.unrealengine.com/u/Tuerer)\
**Post date:** [December 4, 2018, 7:42am UTC](https://forums.unrealengine.com/t/how-to-change-shadow-quality/438811/2 "2018-12-04T07:42:42Z")

</div>

You can use the Set Shadow Quality node, where you can select value from 0 to 4 (0:low, 1:medium, 2:high, 3:epic, 4:cinematic), or you can use the Execute Console Command node with command “r.ShadowQuality=#”, where # takes the same value from 0 to 4.

---

<div class="post-metadata">

**Author:** ![OG\_FATFACE\_420](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@OG\_FATFACE\_420](https://forums.unrealengine.com/u/OG_FATFACE_420)\
**Post date:** [December 4, 2018, 3:57pm UTC](https://forums.unrealengine.com/t/how-to-change-shadow-quality/438811/3 "2018-12-04T15:57:55Z")

</div>

Hello Tuerer. I have done what you have said blinded the shadow qualities to five buttons. They all work except when I press the last button (0 Shadow Quality) The shadows won’t turn off. How would I fix this error and completely disable the shadows at 0.

---

<div class="post-metadata">

**Author:** ![Tuerer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuerer/32/1008648_2.png) [@Tuerer](https://forums.unrealengine.com/u/Tuerer)\
**Post date:** [December 4, 2018, 4:27pm UTC](https://forums.unrealengine.com/t/how-to-change-shadow-quality/438811/4 "2018-12-04T16:27:58Z")

</div>

Idk if there’s a console command or some overall settings for that, but you can always try and Set Cast Shadows to false for all your light components.

---

<div class="post-metadata">

**Author:** ![OG\_FATFACE\_420](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@OG\_FATFACE\_420](https://forums.unrealengine.com/u/OG_FATFACE_420)\
**Post date:** [December 4, 2018, 8:10pm UTC](https://forums.unrealengine.com/t/how-to-change-shadow-quality/438811/5 "2018-12-04T20:10:49Z")

</div>

I have seen YouTube videos of people setting their shadow quality to 0, and all the lights turning off. Why isn’t that happening to me and how can I make that happen?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_44f077f9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_44f077f9](https://forums.unrealengine.com/u/anonymous_user_44f077f9)\
**Post date:** [January 31, 2019, 12:34pm UTC](https://forums.unrealengine.com/t/how-to-change-shadow-quality/438811/6 "2019-01-31T12:34:59Z")

</div>

I too would really like to know about this, except in my case none of these nodes are changing the shadows at all. I need shadows to be toggled on/off globally and this would be perfect. Any idea why they aren’t working?

---

<div class="post-metadata">

**Author:** ![RhyssPaces](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RhyssPaces](https://forums.unrealengine.com/u/RhyssPaces)\
**Post date:** [April 4, 2020, 9:45pm UTC](https://forums.unrealengine.com/t/how-to-change-shadow-quality/438811/7 "2020-04-04T21:45:00Z")

</div>

I was having a similar problem. What finally worked for me was replacing the “=” in the command suggested above with a space–“r.ShadowQuality 0”, “r.ShadowQuality 1”, etc.

---

<div class="post-metadata">

**Author:** ![Mathisxy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mathisxy](https://forums.unrealengine.com/u/Mathisxy)\
**Post date:** [April 6, 2020, 12:44pm UTC](https://forums.unrealengine.com/t/how-to-change-shadow-quality/438811/8 "2020-04-06T12:44:46Z")

</div>

I thought you need to “get game user settings” and than “set Shadow Quality” and than drag off the “get game user settings” and “apply settings” to make it work…

---

<div class="post-metadata">

**Author:** ![Thecooldude148](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/thecooldude148/32/924725_2.png) [@Thecooldude148](https://forums.unrealengine.com/u/Thecooldude148)\
**Post date:** [April 18, 2024, 1:31pm UTC](https://forums.unrealengine.com/t/how-to-change-shadow-quality/438811/9 "2024-04-18T13:31:29Z")

</div>

@OG_FATFACE_420  
@Mathisxy  
@RhyssPaces  
You should do that too to save the settings without having to manually save and load value yourself.

So this image is how I set up my settings for shadow, what happens is that shadows are changed instantly using the **command** …

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/8/b/a8b87eb4e4fd7de3686990fd27b9c45d55f04791.png)

Then to **save** the setting, it’s simply 2 nodes you have to put in as follows in the image…  
**(Seem to only be needed for adjusting resolutions)**

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/5/d/35d04784863bbbc2357322c9d31110a1e6852c45.png)

Also to **load** then, in BeginPlay somewhere (or manual event if u want), I did mine in the game instance, but it’s also just 3 nodes to load the settings…

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/1/1/511c7323098bc2a68f8dbb63f600ce03f621d24b.png)

All of these could be tested with keybinds, so the events, instead of making events or using buttons from widgets, just simply use **keybinds for testing**!
