Working with Unity New Input System

Learning how to make a UI Charge Bar

Preparing for the Challenge:

For this challenge we are going to continue to use the previous Bouncy Ball file that we created for the previous challenge that can be found here. We should have the Bouncy Ball Input Action Maps created along with the Sphere and Jump script attached to it.

Scripting the UI Elements:

Time to start scripting the entire charge meter process. For this function I decided to keep organized so I decided to create a new C# script, I called this script “Charging”.

remember to add in a yield return null to make sure the while loop doesn’t error out.
The charge meter is working alongside the jumping action of the ball.

--

--

A Designer, an Illustrator and a massive tech geek aspiring to become a professional Unity Developer.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Simon Truong

A Designer, an Illustrator and a massive tech geek aspiring to become a professional Unity Developer.