I want the white bar in the image below to fill up the black one, but when I scale the white part it stays in the confinements of black bar. How would I do this?
I don’t know how I could go about this and I can’t find anything on dev forum.
I want the white bar in the image below to fill up the black one, but when I scale the white part it stays in the confinements of black bar. How would I do this?
I don’t know how I could go about this and I can’t find anything on dev forum.
Something like a UIGradient would probably be what you’re looking for. You could use it for the transparency of the white part. You could then change the Offset value when the player’s health value changes.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.