So basically I am going to create a few small gradient bars, similar to the ones seen in all unity components that allow the usage of a gradient(line renderer for one). But I couldn’t use the line renderer for this purpose because it’s inset into the UI canvas. And we are using orthographic cam with zoom function so that the line renderer would require code to counteract these effects, and I don’t want to give it this code.
but on point; the decision here is
create or a overwrite a sprite to contain a gradient when function is called by script where sprite pixel data paints the gradient. OR use a material and update the material gradients.
Orr??? Is there another way
now the reason there is even a post here is because I need multiple gradients and don’t necessarily want to use multiple materials. So just wondering if anyone has any encouragement on which is best. How long will it take to create a small 1 pixel x 100 pixel line of colours in sprite by script?
Thanks