i’m making some sort of a fuel gauge that is linked to an UI image, and the image’s fillamount will change according to the amount of fuel left.
i know fuelAmount / fuelCapacity returns the percentage of fuel left relative to the fuel capacity, but i want my UI image to have a fillamount of 0.6 as max, and there’s where my problem is. i couldn’t get my head to wrap around how make 1.0f = 0.6f in my case. can anyone help?