Search Issue Tracker
Won't Fix
Votes
5
Found in
4.6.0b17
Issue ID
628164
Regression
No
In run-mode, modify color of ui image by animation is inoperative.
To reproduce:
1. Open attached project
2. Open Test scene
3. Press play
4. Notice that animation on UI Image component doesn't change color in game view, but color changes in Inspector. Also notice that animation on sprite works fine and changes colors.
Comments (3)
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
- Crash on JobQueue::HasJobGroupIDCompleted when closing the Editor while in Play mode on a specific project
- In "Preferences" section the “SpriteShape” menu item, the details page title “SpriteShape”, and “ControlPoint” entries are displayed as code strings rather than formatted UI strings
- Errors thrown constantly when Virtual Offset Debug is enabled and lighting was baked on AMD machine
- Persistent Memory Leak when reloading domain and using Distance-based Ghost Importance
- HDRP project doesn't render in standalone player when using High stripping
fabiobp
Feb 02, 2016 00:22
Why they won't fix it? shame on you MS. I'll consider that before choosing my development platform.
Eric Laberge
Jan 11, 2015 22:20
Looking into the UI source code (https://bitbucket.org/Unity-Technologies/ui/src/5fc21bb4ecf4b40ff6630057edaa070252909b2e/UnityEngine.UI/UI/Core/Graphic.cs?at=4.6), we can see that the vertices are set dirty only if the color is changed through the "color" property.
[SerializeField] private Color m_Color = Color.white;
public Color color { get { return m_Color; } set { if (SetPropertyUtility.SetColor(ref m_Color, value)) SetVerticesDirty(); } }
Unfortunately, it seems the animation is using the m_Color serialized field, thus bypassing the call. Manually calling SetVerticesDirty can help bypass the problem.
infinitedev
Aug 30, 2014 10:22
Same problem for us. We constantly have to add dummy property modifications to our animations in order to get the graphic to refresh with the animated color.