Search Issue Tracker
Fixed in 4.6.X
Votes
8
Found in
4.6.0b17
Issue ID
627780
Regression
No
UI Image fill amount breaks when value is set to 0 through script
To reproduce:
1. Open attached project
2. Open test scene
3. Select test game object
4. Press play
5. Press Down Arrow till fill amount value is 0
6. Press Up Arrow
7. Notice than Fill amount value changes, but image doesn't appear
Workaround: Drag fill amount slider the image will render again.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Value on Slider (Int) control in UI Builder displays as default when saving UI Document
- Color mismatch in UI Builders Library panel when the Editors theme is set to Light Mode
- [Android ] "AndroidJNI.ToBooleanArray" returns a random non-zero value instead of "IntPtr.Zero" when the method argument is null
- Non-HDR color picker opens when selecting material color with HDR enabled
- Crash on EditorApplication:Internal_CallUpdateFunctions when pushing property block by index to SpriteShapeRenderer
Eric Elzy
Aug 28, 2014 21:20
I just noticed this too. Took me a while to finally figure it out.
@Jschieck That is pretty much what I have done to get it to work for now.
Hoping this gets fixed for the actual 4.6
jschieck
Aug 28, 2014 16:11
disabling and re-enabling the image also is a fix for it. so after setting the fillAmount just use:
image.enabled = image.fillAmount > 0;
monegames1225
Aug 24, 2014 20:27
one way around this is to set a minimum fill amount to a tiny amount such as 0.001f. and set the fill amount to that if it drops to 0 or lower. this will still show up as invisible but allow it to build back up when needed.
Ecke
Aug 23, 2014 13:20
I have the same issue in my Project, same Unity Version.
An Image with Image Type "Filled" and Fill Method "Horizontal". As soon as the Image reaches fillAmout 0 and rise again, the filling is not drawn anymore. (Changing the fillAmout value via script)