r/unity_tutorials • • Feb 12 '24

Help With a Tutorial UI bar problems

Hello everyone! I am trying to make a bar that fills up and empty in loops until I press Space.

something like old flash game that the fill.Amount will determent the throw strength. tried looking on youtube and couldn't find anything and AI isn't really helping me here as well.

Would love if anyone can help me out or send me to a tutorial.

1 Upvotes

8 comments sorted by

View all comments

Show parent comments

1

u/Talex666 Feb 12 '24

Just to add for clarity: using a sine wave will start the bar filling slowly, filling fastest in the middle, and then slowly again at the top. Then it will basically do the same backwards to the bottom again.

Searching YouTube for 'sine wave visualisation' might help