- Home /
Question by
runningTurtle · Oct 18, 2015 at 07:57 PM ·
c#uislider
How can I access a Slider's fill image programmatically ?
After changing the name of the fill image to "FillImage", I tried:
Transform a = transform.FindChild("FillImage");
Image fillImage = a.GetComponent<Image>();
But that doesn't work.
Comment
Are you sure 'a' is not null? Are there any errors?
Your answer
![](https://koobas.hobune.stream/wayback/20220612041827im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Lagging/unmoving slider 0 Answers
Use Slider for Geometry (GameObject) 'layers' 1 Answer
How to get an object to follow the Slider knob? 0 Answers
Slider moving on hover 0 Answers
Slider moving on hover 0 Answers