Unity 5 Tutorial: Easy Health Bar C# – using localScale

In this small tutorial i will show you how to create a very easy & basic HealthBar with the new canvas system in Unity 5.
▼▼▼ More Infos here: Check em out! ▼▼▼

Basic Workflow:
– set the canvas to world & resize it
– create images for border, background and bar
– write the healthbar function and implement your damage system to that

Change the code to clamp the Bar between 0 and 1 so no overflow happends..
public void SetHealthBar(float myHealth){
healthBar.transform.localScale = new Vector3(Mathf.Clamp(myHealth,0f ,1f),

➤ Tutorial Look to Camera: https://www.youtube.com/watch?v=ViZto58MgjM&list=PLj0TSSTwoqAyOvc2zvdWNoO-jtMZkMDIC&index=10

Support me:
➤ Support me on Patreon: https://goo.gl/bxyM4Z
➤ Want to use Patreon too? https://goo.gl/zkDJrg
➤ Donate with PayPal: https://goo.gl/dGcSCV

Social Media:
➤ Twitter: http://twitter.com/mr_octoman
➤ Facebook: https://www.facebook.com/profile.php?id=100010598523392

➤ My Website: http://www.octomangames.com
➤ My Website Hoster: http://goo.gl/vWyQiz

My Hardware:
➤ My Grafics Tablet: http://goo.gl/spcAQ9
➤ My Mouse: http://goo.gl/xRqP7d
➤ My Headset: http://goo.gl/h5fvZs