Making text follow handle in slider UMG Widget
I'm trying to make a hud where a text stays above a slider handle and displays the value shown. Does anyone have a solution for this?
asked Jun 27 '18 at 10:34 PM in Blueprint Scripting
I've never tried this before, but I have an idea.
In the Widget's Tick event, you can get the X position of the slider handle and then set the x position of the text object to be the same. This might not give you the exact results you want if the text and slider handle are inside of different slots, however.
So you might have to get the screen coords of the handle, then project them to UMG coordinates on the Text widget and make sure the text widget is in a slot such as Canvas that will allow free positioning anywhere on the canvas.
Sorry I don't know if this will work but it's how I would begin trying.
answered Jun 27 '18 at 10:47 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here