Question by
Mad_Llama · Jun 06, 2018 at 09:26 PM ·
c#slideruser interfaceparametersreference-other-object
Setting Hierarchical slider parameters via script
Hey :) I'm writing something for my project and my wish is to have a slider that shows animation time and you can control the animation by adjusting the slider. I'm quite new to Unity and it's been a rough road with multiple standards like Animator and Animation especially with different stadard's libraries...
Currently: I'm struggling with referencing objects in the script. I have a UI slider added in via the hierarchy but I don't know how I can set its parameters (to update it's position with the animation time).
So far I've tried calling a custom function on value change of the slider so I can get the current slider value but I can't set it to a new one.
I really appreciate it, thanks!
Comment