Use a slider to control light intensity

Hello

I’m trying to create a UMG slider increase and decrease the light intensity of a point light or a sport light. I’ve look at the question where someone ask a similar question but that one uses a timeline which is fine in most cases.

My question is : is it possible to use a slider in this case or am I just going around in circles.

Thanks.

Yes this is very doable. When you create the widget (or whenever you want), provide the widget with a reference to the light you want to manipulate and hold it in a variable. Then you can use the OnValueChanged event in the widget to apply an intensity to the referenced light using a lerp between 0 and a maximum intensity that you define.

Hi Baeidan,

Thanks a million for this, I have it work per your setup but the light wont go back to 0 as in it will dim down a small bit but not to zero

Hi baeidan,

Got this working, thanks a million for your help with this

thanks,
Severance799

Hi Severance, how did you make it work? Also I´m trying to use the Oculus touchpad for this, is it possible?

Hi, great post, worked for me, what I am curious about now is using one slider for multiple lights? or even multiple sliders (one for each light)? I tried adding a sequence node in the level blueprint to stack my lights but this did not work, please let me know of any solution, thanks!