Keep slider position after reactivating the widget
Hello UE4 developers! I'm solving material change system for my work project. The goal is to click on asset and change color via HSV sliders. Everything works fine except one thing. Whenever i click again on the same asset where the color has been changed my material is reseted back to original one and 0,0,0 values on sliders. Any tips how to keep sliders on their postions after setting them? Thanks in advance to everyone for tips :)
PS: Wud love to know at least how to add number values to those sliders.
So I click on the door the widget shows up i set up a color, close it and everything is fine...
Can run around the color holds till I want to upgrade it ... there comes the problem the slider setup resets to original
asked Feb 28 '18 at 04:04 PM in Blueprint Scripting
Problem is super "simple" you add a new widget class everytime when you click on the door.. After you add this widget, your blueprint setting parameter on material via the added widget.. That means actually you set default "Color Pick" from newly added widget in tick..
I think you should save Color in BP_Door itself and update them from Widget or you can save a created widget object reference in your BP_Door and check if you have valid widget you should set visibility instead of creating a new widget..
Follow this question
Once you sign in you will be able to subscribe for any updates here