Hi friends,
I want to draw a progress bar like this
![]()
I wrote code, but the effect is not gradient fill based on value. Its a solid color based on the value.
Can you please help me?
Hi friends,
I want to draw a progress bar like this
![]()
I wrote code, but the effect is not gradient fill based on value. Its a solid color based on the value.
Can you please help me?
Take a look at this answer and look on how the alpha gradients are used. Its very usefull for this kind of progressbar.
Simply hide the rainbow texure behind your alpha gradient texture and change its alpha value with a script. This way the alpha texture will fade with the gradient and reveal your rainbow bar.
More details are in the answer above.
I solved this problem.
In Unity 4.6 GUI, also in NGUI you can select sprite type as Filled and Fill mode to radial with you desired fill direction.
I don't understand what you are trying to achieve nor what your problem actually is. This bar should be animated? you want to display one bar at a time? should it be a sprite and working within the unity 4.6 UI system? you have issues with the colors? If you wrote code show us where you are stuck :p regards Edit : If it was a gradient like this [44137-gradient.png|44137] I have a very simple solution, for any use.
– Nerevar