Detect if onValueChanged() of slider is done manually or via script
Im making an app that plays an audio file and some animations and also shows a progress bar slider. I want the slider to be interactive, so that people can drag it to new points in time. I would like to detect these changes via the OnValueChanged method of the slider.
However, the slider also adjusts its own value every frame via script, and I don't want this to invoke the OnValueChanged method, since it's the requested behavior of the slider. Is there a simple function or parameter to see if the value was changed by interacting with the slider?
Your answer
Follow this Question
Related Questions
Change Value Of UI Light Slider to Read At Specific Points Of Slider Value 1 Answer
How do I apply a mask to a slider fill so it uses my quadrilateral design 0 Answers
"Clipping", "Jumping" UI slider, attached to the 2d game object ( health bar) 0 Answers
Stop the camera from rotating when dragging a GUI.slider 2 Answers
EventTrigger OnPointerUp Slider Snap Back to Zero? 0 Answers