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.
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, 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!