control light intensity with slider

Hello,

i assume you know how to create widget and slider.

Inside your slider you got a event to capture value change.

If your code to change the light intensity is in your player character then do something like this:

Create a widget. in construction reference your character.

Then in the onvaluechange inside your slidebar call your function change light intensity by calling this function from your character reference.

Hope that post helpful.