I am currently making an rpg, and i have a UI id really like to use, the problem is the experience and hunger bar are placed in a way i dont know how to code them.
Assuming that the bars are all separate, you should be able to set the UIGradient’s transparency property in a script. It allows you to mask a certain part of the image out. which is what you’re likely looking for. You can generate a number sequence in a script to dynamically change the meter.
Now change the offset property to a value depending on the stats you want to use. Get the percentage thats 0-1 with stat/maxStatValue and set the gradient offset to it.