- Home /
Question by
Karl44 · Jul 04, 2018 at 03:47 AM ·
uibug-perhapsui imagescipting
Image.fillAmount not updating GUI
LoadingBar.fillAmount = (currentAmount / 100);
Debug.Log(LoadingBar.fillAmount);
Log gives correct value but LoadingBar UI Element is not updating. IDK what's the problem, is it a bug? Unity 20181.0.f2
Comment
Answer by Karl44 · Jul 04, 2018 at 05:52 AM
Solved it by disabling animator before running codes. it seems like animation is keeping the fillamount from updating.
Your answer
![](https://koobas.hobune.stream/wayback/20220612170011im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Random image that only shows on build 0 Answers
How do i make my ui elements stay the same size and position on all andorid devices? 1 Answer
UI Canvas Image parented to main camera only moves in x and z 0 Answers
Importing Stripes from Photoshop to Unity 0 Answers
Get mouse click world coordinates "through" UI Raw Image with Render Texture from second camera 2 Answers