D
D
dark_spectator2019-02-16 05:58:47
C++ / C#
dark_spectator, 2019-02-16 05:58:47

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 expereinceand targetExpereincevary, but expereincewill 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

1 answer(s)
D
Dmitry Korolev, 2019-02-16
@adressmoeistranici

x watermelons - 10%
300 watermelons - 100%
x = 10 * 300 / 100
do you mean that?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question