Some experience in Unity development and Hololens Application
In Slider, the good way to invoke the value, in the script, using the following structure to call Object Slider,
public void function_name(Slider slider) { //code }
in scenes, using the following method, just drag the slider inside the value blank.