Why is UI slider not giving a value on Play?

I would like A Slider to give a value on Play without the need of interacting with it, does anyone have an answer to this?

Here is my setup:

The value of the slider is set to 0,1

The Event Graph

On Play Value is 0
Screenshot 2023-04-11 220529

It works for me .

  1. Implemented a slider on a UserWidget.
  2. set the slider’s value to 0.8 on the editor panel.
  3. Print the slider value on UserWidget OnInitialized: Works.
  4. Print the slider value on UserWidget PreConstruct: Works.

afbeelding

Seems to me you are setting the property elsewhere, or you have a modified slider with the property being Transient or something.

1 Like

Hey @ATGustavsson!

I hate to be that guy, but did you try connecting the event to the output?
image

@Roy_Wierer.Seda145

Thank you, Creating Get Slider and Get Value made it work for me, with an Event Tick


Screenshot 2023-04-12 170359

@Mind-Brain
Connecting the Event on value changed to print text did not make it work for me :slight_smile: