Search Unity

Bug Slider OnValueChanged being called at runtime on 2021.3.6f1

Discussion in 'UGUI & TextMesh Pro' started by RSH1, Jul 20, 2022.

  1. RSH1

    RSH1

    Joined:
    Jul 9, 2012
    Posts:
    256
    I have a UI slider whose OnValueChanged method is being automatically called when the scene starts, before the user has had any input.

    This didn't used to happen with previous versions of Unity and it's preventing me from persisting the slider's value as if start value change automatically rewrites the saved playerpref value to 0 within the method.