Unity Learn home
View Tutorial Content

Display character health on the UI

Tutorial
Beginner
+10 XP
25 Mins
(461)
Overview
Summary
In this tutorial, you’ll create a script to adjust the health display bar based on the player character’s health.
By the end of the tutorial, you’ll be able to do the following:
  • Resize a UI element based on a variable.
  • Make your script accessible without a reference using a static class member.
Select your Unity version
Last updated: November 15, 2024
2022.3
Language
English
Display character health on the UI