- Home /
Best Answer
Answer by IvayloDev · Nov 19, 2016 at 06:18 PM
Easier than I thought.
Just get the height of the image, in my case I only cared for the Y and multiply that by the fillAmount.
GetComponent().sizeDelta.y * bottle.fillment.fillAmount;
Your answer
Follow this Question
Related Questions
Make images fit in UI 0 Answers
All UI buttons appear and stack on top of each other. 1 Answer
transform position of an UI-image (Unity5) 3 Answers
how to swap image position 3 Answers
Get position of ui element on canvas 1 Answer