Answer the question
In order to leave comments, you need to log in
How to implement progressbar in Unity?
Hello everyone, we need to implement ProgressBar. There are 2 values: expereince
( double
) targetExpereince
( double
) The
maximum size of the rectangular strip 300px
, the values ​​of expereince
and targetExpereince
vary, but expereince
will never be greater than targetExpereince
. If you imagine: expereince = 1053.565443
targetExpereince = 2565.7323672
How can this be implemented? Ideally a separate method with 3 parameters: expereince
targetExpereince
maxValue
- Maximum strip length
Answer the question
In order to leave comments, you need to log in
x watermelons - 10%
300 watermelons - 100%
x = 10 * 300 / 100
do you mean that?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question