# How can I change the brightness with a slider?

**URL:** <https://forums.unrealengine.com/t/how-can-i-change-the-brightness-with-a-slider/461851>\
**Category:** Rendering\
**Tags:** brightness, slider, unreal-engine, options, Blueprint, question\
**Created:** [February 27, 2020, 10:42am UTC](https://forums.unrealengine.com/t/how-can-i-change-the-brightness-with-a-slider/461851 "2020-02-27T10:42:20Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_24f41cec](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_24f41cec](https://forums.unrealengine.com/u/anonymous_user_24f41cec)\
**Post date:** [February 27, 2020, 10:42am UTC](https://forums.unrealengine.com/t/how-can-i-change-the-brightness-with-a-slider/461851/1 "2020-02-27T10:42:20Z")

</div>

Hi, I’m working on the settings menu of my game and I can’t find documentation or any info on how to change the brightness with a slider. I have also seen some games have a gamma option and I would like to add it too. Can anyone help?

Also someone told me to try this [Auto Settings in Code Plugins - UE Marketplace](https://www.unrealengine.com/marketplace/en-US/product/auto-settings-game-options-and-input-binding-toolkit) but I don’t know how it works so… Yeah haha

---

<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:** [February 27, 2020, 3:55pm UTC](https://forums.unrealengine.com/t/how-can-i-change-the-brightness-with-a-slider/461851/2 "2020-02-27T15:55:00Z")

</div>

Bind a slider widget to a float variable ( that variable could be in a lot of places, but possibilities are game instance, save game, blueprint, player etc ).

Have a post process in the level ( it could be placed, spawned or part of a BP ).

When the slider is moved, it changes the brightness value in the post process.

I can give you a code example if you want, but like I say, many different ways of doing it 🙂

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_24f41cec](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_24f41cec](https://forums.unrealengine.com/u/anonymous_user_24f41cec)\
**Post date:** [March 7, 2020, 2:23pm UTC](https://forums.unrealengine.com/t/how-can-i-change-the-brightness-with-a-slider/461851/3 "2020-03-07T14:23:44Z")

</div>

Hey! Sorry for the late **late** reply but yeah, an example could come in handy. Also, the gamma would work the same way right?

---

<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:** [March 7, 2020, 3:18pm UTC](https://forums.unrealengine.com/t/how-can-i-change-the-brightness-with-a-slider/461851/4 "2020-03-07T15:18:28Z")

</div>

Put a post process volume in your level, set it to infinite extent.

Make a new widget BP. Put a slider in it. Down the bottom of the slider details, click the big green ‘on value changed’ button and put this code in:

 ![297417-wig.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/c/3/1c3fd90bd3344a4f5f4fb34744b2817b2f8bf165.jpeg)

Run the game. It actually works back to front, but you get the idea 😉

![297418-brightness.gif](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/4/c/e4c563bb7ccb87e6a217e6131f4fc1b5b79cc23b.gif)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_24f41cec](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_24f41cec](https://forums.unrealengine.com/u/anonymous_user_24f41cec)\
**Post date:** [March 8, 2020, 10:35am UTC](https://forums.unrealengine.com/t/how-can-i-change-the-brightness-with-a-slider/461851/5 "2020-03-08T10:35:15Z")

</div>

I can’t find the “get actor of class” node, only the “get all actors of class” node appears… Also: I don’t know how to set the post processing volume to infinite extent haha

 ![297461-captura.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/8/e/58e01d3eb31ad1fdbc8399e29c2c8b1edfba04f6.png)

---

<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:** [March 8, 2020, 11:33am UTC](https://forums.unrealengine.com/t/how-can-i-change-the-brightness-with-a-slider/461851/6 "2020-03-08T11:33:28Z")

</div>

Click on the PP volume, in the details panel:

![297462-inf.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/f/3/ef3eb37167a51d78b5a59da37c0014c78a62077c.jpeg)

Stop typing ‘getall…’, try typing ‘getactorof…’:

![297463-getactor.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/b/f/dbffb505bad191bec28a392ddaf25638340ee400.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_24f41cec](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_24f41cec](https://forums.unrealengine.com/u/anonymous_user_24f41cec)\
**Post date:** [March 8, 2020, 12:42pm UTC](https://forums.unrealengine.com/t/how-can-i-change-the-brightness-with-a-slider/461851/7 "2020-03-08T12:42:06Z")

</div>

I can’t find the infinite extent thing, and I believe that is because we are working on different versions of the editor, since I’ve found the “unbound” option, which I think does the same thing?

![297471-unbound.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/6/6/c6610aeedcd39363d17f6f8944317df5296be15f.png)

And the same thing goes for the “Get Actor Of Class”, because it doesn’t appear, even if I uncheck the “context sensitive” box

 ![297472-getactorof1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/2/f/c2fa4db3fced0a0c05879809af8fb410732bf35f.png)

I’m working on 4.17, which version are you on?

---

<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:** [March 8, 2020, 12:54pm UTC](https://forums.unrealengine.com/t/how-can-i-change-the-brightness-with-a-slider/461851/8 "2020-03-08T12:54:51Z")

</div>

Sorry, unbound, that’s it.

For the actor thing, don’t pull off a pin, just click on the background and look for it.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_24f41cec](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_24f41cec](https://forums.unrealengine.com/u/anonymous_user_24f41cec)\
**Post date:** [March 8, 2020, 1:30pm UTC](https://forums.unrealengine.com/t/how-can-i-change-the-brightness-with-a-slider/461851/9 "2020-03-08T13:30:13Z")

</div>

I still can’t find it ☹

 ![297456-getactorof2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/7/b/07b29551421649cacc7650aa5719c4af565f2f08.png)

---

<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:** [March 8, 2020, 1:45pm UTC](https://forums.unrealengine.com/t/how-can-i-change-the-brightness-with-a-slider/461851/10 "2020-03-08T13:45:14Z")

</div>

Ok, then do this:

![297474-get.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/1/b/91bbc77a1dca26c297ae32a669d7e64bfd814860.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_24f41cec](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_24f41cec](https://forums.unrealengine.com/u/anonymous_user_24f41cec)\
**Post date:** [March 8, 2020, 2:33pm UTC](https://forums.unrealengine.com/t/how-can-i-change-the-brightness-with-a-slider/461851/11 "2020-03-08T14:33:19Z")

</div>

That sort of made it, now I don’t get the pins of the “make post process settings”

 ![297482-make-pps.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/9/7/b97c788bd919e6a55319087bf7a6381efb91d64b.png)

---

<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:** [March 8, 2020, 2:48pm UTC](https://forums.unrealengine.com/t/how-can-i-change-the-brightness-with-a-slider/461851/12 "2020-03-08T14:48:51Z")

</div>

Getting there ( I don’t know how much you know / don’t ).

click on the post process node, in the details you have to tick the things you want to have on the node… 🙂

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_24f41cec](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_24f41cec](https://forums.unrealengine.com/u/anonymous_user_24f41cec)\
**Post date:** [March 8, 2020, 3:49pm UTC](https://forums.unrealengine.com/t/how-can-i-change-the-brightness-with-a-slider/461851/13 "2020-03-08T15:49:24Z")

</div>

It still doesn’t work for some reason? And this is what the slider looks like:

 ![297475-slider.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/c/3/bc3cadad943e5a318e112b9cddcf3b9c53a4861d.png)

---

<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:** [March 8, 2020, 3:53pm UTC](https://forums.unrealengine.com/t/how-can-i-change-the-brightness-with-a-slider/461851/14 "2020-03-08T15:53:28Z")

</div>

Can i see your ‘on value changed’ code now?

---

<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:** [March 8, 2020, 3:53pm UTC](https://forums.unrealengine.com/t/how-can-i-change-the-brightness-with-a-slider/461851/15 "2020-03-08T15:53:46Z")

</div>

( Is that two sliders?.. )

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_24f41cec](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_24f41cec](https://forums.unrealengine.com/u/anonymous_user_24f41cec)\
**Post date:** [March 8, 2020, 3:56pm UTC](https://forums.unrealengine.com/t/how-can-i-change-the-brightness-with-a-slider/461851/16 "2020-03-08T15:56:24Z")

</div>

It is only one! I don’t know whats going on either… Gimme a minute, I’ll post my code

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_24f41cec](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_24f41cec](https://forums.unrealengine.com/u/anonymous_user_24f41cec)\
**Post date:** [March 8, 2020, 4:01pm UTC](https://forums.unrealengine.com/t/how-can-i-change-the-brightness-with-a-slider/461851/17 "2020-03-08T16:01:30Z")

</div>

Here you go

 ![297477-slider-code.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/5/6/956fca5f3f7aadf1ad509406c01c47fd29b2963b.png)

---

<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:** [March 8, 2020, 4:02pm UTC](https://forums.unrealengine.com/t/how-can-i-change-the-brightness-with-a-slider/461851/18 "2020-03-08T16:02:54Z")

</div>

Yeah, you connected it up wrong… :-/

Take a look at my piccy at the beginning…

---

<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:** [March 8, 2020, 5:00pm UTC](https://forums.unrealengine.com/t/how-can-i-change-the-brightness-with-a-slider/461851/19 "2020-03-08T17:00:54Z")

</div>

Did you get there?.. 🙂

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_24f41cec](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_24f41cec](https://forums.unrealengine.com/u/anonymous_user_24f41cec)\
**Post date:** [March 8, 2020, 5:07pm UTC](https://forums.unrealengine.com/t/how-can-i-change-the-brightness-with-a-slider/461851/20 "2020-03-08T17:07:17Z")

</div>

Okay I fixed the connections but it looks the same and does nothing… Shouldn’t I bind something to the value of the slider?

 ![297491-slider-code-fixed.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/7/6/c76ec8158c8c32311839497e8d5ce5934afc905a.png)

[Next page](https://forums.unrealengine.com/t/how-can-i-change-the-brightness-with-a-slider/461851.md?page=2)
