I’m trying to create a UMG with a slider that changes the intensity of the light. So far I can change the value and then return to the game but when I want to change it again the slider resets its value. The way I call the UMG widget is pressing the TAB key. And return to game by clicking a button.
I suppose it has something to do with launching the UMG from the level BP. Is it possible to store the value somewhere else everytime I close the UMG and then call that stored value when pausing the game again?
I add some screenshot of what I have so far.
This is how I store the value when changing the slider and then send it to an event dispatcher…
This is how I call and then change the intensity of the lights…
Any recommendation? Would be nice if I could do this inside a blueprint for the lights… But when I tried that way I couldn’t get the variable value from the widget to the BP.