dynamic value for slider with reference to slider unity unity code example Example: how to set value of slider in unity slider.value = newValue